From 1d58becb47d9f7b57b090bd35af32248f79cf39a Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sat, 31 Jul 2021 20:07:28 +1000 Subject: [PATCH] Fix crash when removing upgrades (#65) Fixes #59. --- lua/visual.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/visual.lua b/lua/visual.lua index 02d0b7c..56974b0 100755 --- a/lua/visual.lua +++ b/lua/visual.lua @@ -374,7 +374,7 @@ core.register_entity("drawers:visual", { local dropPos = core.find_node_near(self.drawer_pos, 1, {"air"}, false) -- if no pos found then drop on the top of the drawer if not dropPos then - dropPos = self.pos + dropPos = self.object:get_pos() dropPos.y = dropPos.y + 1 end -- drop the item stack