Fix hopper downpos priority check

This commit is contained in:
wallabra 2022-06-20 17:05:18 -03:00
parent ff0e0dd36a
commit 54e9477f37
Signed by untrusted user: Gustavo6046
GPG Key ID: 56BA7150FE60F0E2
1 changed files with 3 additions and 2 deletions

View File

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