ShadowNinja
2013-12-17 5cf765b2f19ef9bf443178e26787fe16233b3f4c
technic/machines/register/alloy_furnace.lua
@@ -6,11 +6,11 @@
-- Register recipe in a table
technic.register_alloy_recipe = function(metal1, count1, metal2, count2, result, count3)
   in1 = {
   local in1 = {
      name  = metal1,
      count = count1,
   }
   in2 = {
   local in2 = {
      name  = metal2,
      count = count2,
   }
@@ -205,7 +205,7 @@
         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 @@
         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