Fix nil warning

This commit is contained in:
Wuzzy 2021-08-08 17:39:04 +02:00
parent 3fabb4ac51
commit b11e368049

View File

@ -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)