From b0e4f442d55155e80ef2885682bbe05a48ed4efe Mon Sep 17 00:00:00 2001 From: Elkien3 Date: Wed, 7 Mar 2018 20:31:20 -0600 Subject: [PATCH] patch --- mods/backpack/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/backpack/init.lua b/mods/backpack/init.lua index 9a1507c..0981d24 100644 --- a/mods/backpack/init.lua +++ b/mods/backpack/init.lua @@ -109,9 +109,11 @@ dropbackpack = function(player) pack.owner = nil obj:set_detach() local addnewentity = rezEntity(nil, pos, player, pack.contents) - if obj:remove() then addnewentity() end + if obj:remove() then + addnewentity() + end player_backpack[name] = nil - end, player) + end end minetest.register_on_leaveplayer(function(player)