mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 11:55:09 +00:00
Fix side hopper not collecting non-fuel items
This commit is contained in:
parent
7175ffb975
commit
7471836c2d
1 changed files with 8 additions and 0 deletions
|
@ -445,6 +445,14 @@ minetest.register_abm({
|
|||
local g = minetest.registered_nodes[abovenode.name].groups.container
|
||||
mcl_util.move_item_container(above, pos)
|
||||
|
||||
-- Also suck in non-fuel items from furnace fuel slot
|
||||
if not sucked and g == 4 then
|
||||
local finv = minetest.get_inventory({type="node", pos=above})
|
||||
if finv and not mcl_util.is_fuel(finv:get_stack("fuel", 1)) then
|
||||
mcl_util.move_item_container(above, pos, "fuel")
|
||||
end
|
||||
end
|
||||
|
||||
-- Move an item from the hopper into the container to which the hopper points to
|
||||
local g = minetest.registered_nodes[frontnode.name].groups.container
|
||||
if g == 2 or g == 3 or g == 5 or g == 6 then
|
||||
|
|
Loading…
Reference in a new issue