forked from MineClone5/MineClone5
Fix hopper downpos priority check
This commit is contained in:
parent
ff0e0dd36a
commit
54e9477f37
|
@ -457,8 +457,9 @@ minetest.register_abm({
|
|||
|
||||
-- Try to move an item below before moving it sideways
|
||||
local downnode = minetest.get_node(downpos)
|
||||
if not minetest.registered_nodes[downnode.name] then return end
|
||||
if mcl_util.move_item_container(pos, downpos) then return end
|
||||
|
||||
if minetest.registered_nodes[downnode.name] and \
|
||||
mcl_util.move_item_container(pos, downpos) then return end
|
||||
|
||||
-- Move an item from the hopper into the container to which the hopper points to
|
||||
local g = get_item_group(frontnode.name, "container")
|
||||
|
|
Loading…
Reference in New Issue