mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 05:42:33 +01:00
Machines should become inactive when output slots are full
This commit is contained in:
parent
a793747d92
commit
a529baba47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user