mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-12-22 20:42:22 +01:00
parent
8531c1bb2a
commit
1d58becb47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user