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.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/technic/machines/register/alloy_furnace.lua b/technic/machines/register/alloy_furnace.lua
index 4bb61fd..64080c1 100644
--- a/technic/machines/register/alloy_furnace.lua
+++ b/technic/machines/register/alloy_furnace.lua
@@ -205,7 +205,7 @@ function technic.register_alloy_furnace(data)
end
if not result or
not inv:room_for_item("dst", result) then
- hacky_swap_node(pos, machine_node)
+ technic.swap_node(pos, machine_node)
meta:set_string("infotext", S("%s Idle"):format(machine_name))
meta:set_int(tier.."_EU_demand", 0)
return
@@ -213,11 +213,11 @@ function technic.register_alloy_furnace(data)
if eu_input < machine_demand[EU_upgrade+1] then
-- Unpowered - go idle
- hacky_swap_node(pos, machine_node)
+ technic.swap_node(pos, machine_node)
meta:set_string("infotext", S("%s Unpowered"):format(machine_name))
elseif eu_input >= machine_demand[EU_upgrade+1] then
-- Powered
- hacky_swap_node(pos, machine_node.."_active")
+ technic.swap_node(pos, machine_node.."_active")
meta:set_string("infotext", S("%s Active"):format(machine_name))
meta:set_int("src_time", meta:get_int("src_time") + 1)
if meta:get_int("src_time") == data.cook_time then