Zefram
2014-07-25 d59055dd2b1a03449ff11318a2f210d37dd7e76a
technic/machines/supply_converter.lua
@@ -25,7 +25,6 @@
   local to   = technic.get_cable_tier(name_down)
   if from and to then
      technic.switching_station_timeout_count(pos, from)
      local input = meta:get_int(from.."_EU_input")
      meta:set_int(from.."_EU_demand", demand)
      meta:set_int(from.."_EU_supply", 0)
@@ -36,6 +35,12 @@
         ..input * remain.." "..to..")")
   else
      meta:set_string("infotext", S("%s Has Bad Cabling"):format(machine_name))
      if to then
         meta:set_int(to.."_EU_supply", 0)
      end
      if from then
         meta:set_int(from.."_EU_demand", 0)
      end
      return
   end