mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01: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