Code updated to make machine fully compatible with Tubelib2 framework.
Major changes:
* supports Tubelib2 by using NodeStates class and new metadata
* BLOCKED state introduced when no space left in output tray
* set to FAULT when Biogas tank is empty
* on_punch diagnostics removed
* processing logic updated (fuel checks reorganized, desired_state
metadata introduced, improved state transition logic)
Fixed:
* proper checking for space in output tray for items with vessels
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
During code replication from base freezer.lua to other Biogas Machines
in on_punch() callback a unnecessary call to biogasmachines.is_pipe_with_water()
function has been overlooked and left over. This commit removes that call
for gasifier and furnaces.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Backported from Jet Furnace. When no fuel, device waits for some time
(the same value as for standby) before it shuts down automatically.
This timeout allows fuel to reach device in more complicated Tubelib
machineries.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Biogas Furnace is Tubelib-compatible version of standard furnace that
uses Biogas as fuel. All default furnace cooking recipes apply.
See gasfurnace.lua for details and differences.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Coal block output changed to 9 Biogas units.
Timer code optimized by using local recipe variable.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>