Fix nil warning

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

View File

@ -76,7 +76,8 @@ minetest.register_on_joinplayer(function(player)
end) end)
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)
wielditem[name] = nil local name = player:get_player_name()
wielditem[name] = nil
end) end)
default.log("mod:wielditem", "loaded") default.log("mod:wielditem", "loaded")