Default furnace
I notices in default/furnace.lua that the abm action for furnaces, that runs once per second, initialize the inventories for the furnace each time. Unless I'm missing something the inventories numbers are not going to change at all once the furnace is created. Am I missing something?
I'm going to move the initialization to node placement, and experiment.
Code in question.
I'm going to move the initialization to node placement, and experiment.
Code in question.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
--
-- Inizialize inventory
--
local inv = meta:get_inventory()
for listname, size in pairs({
src = 1,
fuel = 1,
dst = 4,
}) do
if inv:get_size(listname) ~= size then
inv:set_size(listname, size)
end
end