Fix crash when removing upgrades (#65)

Fixes #59.
master
OgelGames 2021-07-31 20:07:28 +10:00 committed by GitHub
parent 8531c1bb2a
commit 1d58becb47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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