Hoppers suck non-fuel items from furnace fuel slot

This commit is contained in:
Wuzzy 2017-03-02 23:45:42 +01:00
parent 410d9bbaa4
commit 7f5629fc2a
1 changed files with 6 additions and 0 deletions

View File

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