change to on_dieplayer

This commit is contained in:
Alexander Weber 2017-07-06 14:02:17 +02:00
parent 07d5a02b8a
commit 2f72989d02

View File

@ -196,7 +196,7 @@ minetest.after(0, function ()
end)
minetest.register_on_respawnplayer(function(player)
minetest.register_on_dieplayer(function(player)
local playername = player:get_player_name()
if woodcutting.inprocess[playername] then
player:hud_remove(woodcutting.inprocess[playername].hud)