diff options
author | ThatGraemeGuy <thatgraemeguy@users.noreply.github.com> | 2015-07-12 20:43:01 +0200 |
---|---|---|
committer | ThatGraemeGuy <thatgraemeguy@users.noreply.github.com> | 2015-07-12 20:43:01 +0200 |
commit | a529baba471df4a0fe3b3ad58b8ca1871c42fdad (patch) | |
tree | 6dae7264e33c93c8d63e14217624ed974307e0d3 | |
parent | a793747d92d9b1d93153c7fb4e0c82fe90624c78 (diff) |
Machines should become inactive when output slots are full
-rw-r--r-- | technic/machines/register/machine_base.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/technic/machines/register/machine_base.lua b/technic/machines/register/machine_base.lua index f971c5a..0c46261 100644 --- a/technic/machines/register/machine_base.lua +++ b/technic/machines/register/machine_base.lua @@ -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 |