This commit is contained in:
Elkien3 2018-03-07 20:31:20 -06:00
parent d74a3f97c8
commit b0e4f442d5

View File

@ -109,9 +109,11 @@ dropbackpack = function(player)
pack.owner = nil pack.owner = nil
obj:set_detach() obj:set_detach()
local addnewentity = rezEntity(nil, pos, player, pack.contents) local addnewentity = rezEntity(nil, pos, player, pack.contents)
if obj:remove() then addnewentity() end if obj:remove() then
addnewentity()
end
player_backpack[name] = nil player_backpack[name] = nil
end, player) end
end end
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)