From 9562515ee1af4328b8c27e30b3613c0342ea220e Mon Sep 17 00:00:00 2001 From: Elkien3 Date: Thu, 19 Oct 2017 08:27:11 -0500 Subject: [PATCH] one more tweak --- mods/backpack/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/backpack/init.lua b/mods/backpack/init.lua index ec9e031..c540fd2 100644 --- a/mods/backpack/init.lua +++ b/mods/backpack/init.lua @@ -109,9 +109,8 @@ dropbackpack = function(player) pos.y = pos.y + 0.4 pack.owner = nil obj:set_detach() - obj:remove() local addnewentity = rezEntity(nil, pos, player, pack.contents) - if addnewentity then end + if addnewentity then obj:remove() end player_backpack[name] = nil end end, player)