mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Add warning log if players with 0 hp joined (#4051)
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4051 Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land> Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land> Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
This commit is contained in:
parent
0673fcc25b
commit
86dad4693e
1 changed files with 1 additions and 0 deletions
|
@ -675,6 +675,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
-- Respawn dead players on joining
|
||||
if hp <= 0 then
|
||||
player:respawn()
|
||||
minetest.log("warning", name .. " joined the game with 0 hp and has been forced to respawn")
|
||||
end
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue