forked from VoxeLibre/VoxeLibre
Specify who joined the game with 0 hp in the warning log
This commit is contained in:
parent
3a11fcf67a
commit
339fb2d79e
|
@ -675,7 +675,7 @@ minetest.register_on_joinplayer(function(player)
|
||||||
-- Respawn dead players on joining
|
-- Respawn dead players on joining
|
||||||
if hp <= 0 then
|
if hp <= 0 then
|
||||||
player:respawn()
|
player:respawn()
|
||||||
minetest.log("warning", "Player with 0 hp joined and has been forced to respawn")
|
minetest.log("warning", name .. " joined the game with 0 hp and has been forced to respawn")
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue