From bd3cc74d0576250af06a367369b7ea709d5581f4 Mon Sep 17 00:00:00 2001 From: ShadowNinja <noreply@gmail.com> Date: Tue, 24 Sep 2013 23:09:20 +0200 Subject: [PATCH] Don't consume items or drain power when there isn't room for the results --- technic/machines/register/alloy_furnace.lua | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/machines/register/alloy_furnace.lua b/technic/machines/register/alloy_furnace.lua index b771134..bbae151 100644 --- a/technic/machines/register/alloy_furnace.lua +++ b/technic/machines/register/alloy_furnace.lua @@ -240,7 +240,8 @@ srcstack = src2stack src2stack = temp end - if not result then + if not result or + not inv:room_for_item("dst", result) then hacky_swap_node(pos, machine_node) meta:set_string("infotext", machine_name.." Idle") meta:set_int(data.tier.."_EU_demand", 0) @@ -251,7 +252,6 @@ -- Unpowered - go idle hacky_swap_node(pos, machine_node) meta:set_string("infotext", machine_name.." Unpowered") - next_state = 1 elseif eu_input >= machine_demand[EU_upgrade+1] then -- Powered hacky_swap_node(pos, machine_node.."_active") -- Gitblit v1.8.0