From 2d7f750d9a734e2c84cc1ee14746a4ee2f8757e6 Mon Sep 17 00:00:00 2001 From: hdastwb <hdastwb@hdastwb.heliohost.org> Date: Wed, 24 Jul 2013 03:43:36 +0200 Subject: [PATCH] fixed a condition with mv machines so as to not power down machines with stuff to grind/smelt but nothing to tube out --- technic/machines/mv/alloy_furnace.lua | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/technic/machines/mv/alloy_furnace.lua b/technic/machines/mv/alloy_furnace.lua index cadcb67..1809262 100644 --- a/technic/machines/mv/alloy_furnace.lua +++ b/technic/machines/mv/alloy_furnace.lua @@ -36,6 +36,7 @@ local inv=meta:get_inventory() return inv:room_for_item("src",stack) end, + connect_sides = {left=1, right=1, back=1, top=1, bottom=1}, }, legacy_facedir_simple = true, sounds = default.node_sound_stone_defaults(), @@ -82,6 +83,7 @@ local inv=meta:get_inventory() return inv:room_for_item("src",stack) end, + connect_sides = {left=1, right=1, back=1, top=1, bottom=1}, }, legacy_facedir_simple = true, sounds = default.node_sound_stone_defaults(), @@ -260,8 +262,7 @@ -- The machine shuts down if we have nothing to smelt and no tube is connected -- or if we have nothing to send with a tube connected. - if (not output_tube_connected and inv:is_empty("src")) - or ( output_tube_connected and inv:is_empty("dst")) then + if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then next_state = 1 end ---------------------- -- Gitblit v1.8.0