Machines should become inactive when output slots are full

This commit is contained in:
ThatGraemeGuy 2015-07-12 20:43:01 +02:00
parent a793747d92
commit a529baba47

View File

@ -122,6 +122,9 @@ function technic.register_base_machine(data)
inv:add_item("dst_tmp", o)
end
if not room_for_output then
technic.swap_node(pos, machine_node)
meta:set_string("infotext", S("%s Idle"):format(machine_desc_tier))
meta:set_int(tier.."_EU_demand", 0)
meta:set_int("src_time", round(result.time*10))
return
end