mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-03 03:07:36 +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)
|
inv:add_item("dst_tmp", o)
|
||||||
end
|
end
|
||||||
if not room_for_output then
|
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))
|
meta:set_int("src_time", round(result.time*10))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user