Carter Kolwey
2014-01-11 ebc114df71cc20868afbd3c6dea4039dc14c1a0e
technic/machines/LV/extractor.lua
@@ -121,6 +121,7 @@
      -- Power off automatically if no longer connected to a switching station
      technic.switching_station_timeout_count(pos, "LV")
      local src_item = nil
      if srcstack then
         src_item = srcstack:to_table()
      end
@@ -132,7 +133,7 @@
      end 
      if inv:is_empty("src") or (not recipe) or (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("LV_EU_demand", 0)
         return
@@ -140,11 +141,11 @@
      if eu_input < demand 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 >= demand 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)