mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-26 00:23:44 +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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user