Allow to put fuels into furnace with hoppers

This commit is contained in:
Wuzzy 2017-02-21 02:09:34 +01:00
parent e5f6837c27
commit d8f423ac07
2 changed files with 23 additions and 11 deletions

View file

@ -221,7 +221,12 @@ minetest.register_abm({
end
-- Move an item from the hopper into the container to which the hopper points to
mcl_util.move_item_container(pos, "main", -1, front)
local g = minetest.registered_nodes[frontnode.name].groups.container
if g == 2 or g == 3 then
mcl_util.move_item_container(pos, "main", -1, front)
elseif g == 4 then
mcl_util.move_item_container(pos, "main", -1, front, "fuel")
end
end
})