Merge pull request #4 from CasimirKaPazi/crashafterjoin

Prevent crash when new player left
master
Le Platos 2016-12-20 16:19:14 +01:00 committed by GitHub
commit e85b74f36a
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ minetest.register_on_joinplayer(function(player)
inventory_plus.inventory[player:get_player_name()] = player:get_inventory_formspec()
end
minetest.after(1,function()
if not player:is_player() then return end
inventory_plus.set_inventory_formspec(player,inventory_plus.get_formspec(player, inventory_plus.default))
end)
end)