mirror of
https://github.com/minetest-mods/drawers.git
synced 2025-02-16 23:22:24 +01:00
@ -374,7 +374,7 @@ core.register_entity("drawers:visual", {
|
|||||||
local dropPos = core.find_node_near(self.drawer_pos, 1, {"air"}, false)
|
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 no pos found then drop on the top of the drawer
|
||||||
if not dropPos then
|
if not dropPos then
|
||||||
dropPos = self.pos
|
dropPos = self.object:get_pos()
|
||||||
dropPos.y = dropPos.y + 1
|
dropPos.y = dropPos.y + 1
|
||||||
end
|
end
|
||||||
-- drop the item stack
|
-- drop the item stack
|
||||||
|
Reference in New Issue
Block a user