summaryrefslogtreecommitdiff
path: root/technic/machines/register/alloy_furnace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'technic/machines/register/alloy_furnace.lua')
-rw-r--r--technic/machines/register/alloy_furnace.lua4
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 @@ function technic.register_alloy_furnace(data)
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 @@ function technic.register_alloy_furnace(data)
-- 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")