mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-12-01 04:22:59 +00:00
Hoppers suck non-fuel items from furnace fuel slot
This commit is contained in:
parent
410d9bbaa4
commit
7f5629fc2a
1 changed files with 6 additions and 0 deletions
|
@ -256,6 +256,12 @@ minetest.register_abm({
|
|||
elseif g == 4 then
|
||||
-- Furnace output
|
||||
mcl_util.move_item_container(uppos, "dst", -1, pos)
|
||||
|
||||
-- Also suck in non-fuel items from fuel slot
|
||||
local finv = minetest.get_inventory({type="node", pos=uppos})
|
||||
if finv and not mcl_util.is_fuel(finv:get_stack("fuel", 1)) then
|
||||
mcl_util.move_item_container(uppos, "fuel", -1, pos)
|
||||
end
|
||||
end
|
||||
|
||||
-- Move an item from the hopper into container below
|
||||
|
|
Loading…
Reference in a new issue