Fix nil warning
This commit is contained in:
parent
3fabb4ac51
commit
b11e368049
@ -76,6 +76,7 @@ minetest.register_on_joinplayer(function(player)
|
||||
end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local name = player:get_player_name()
|
||||
wielditem[name] = nil
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user