change to on_dieplayer
This commit is contained in:
parent
07d5a02b8a
commit
2f72989d02
2
init.lua
2
init.lua
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user