summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-07-14 11:16:37 +0200
committerNovatux <nathanael.courant@laposte.net>2014-07-14 11:16:37 +0200
commitefd5ff644c165aa5625b00cbe0776f7c69ddf6a9 (patch)
treeff4f1fffdcf92d46d95a458c6699b43a71c2e522
parent7065ba9155b468b1e33e8cf773f217d407222e3f (diff)
Fix supply converter again
-rw-r--r--technic/machines/supply_converter.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/technic/machines/supply_converter.lua b/technic/machines/supply_converter.lua
index ccfb9b0..d89c3c1 100644
--- a/technic/machines/supply_converter.lua
+++ b/technic/machines/supply_converter.lua
@@ -35,7 +35,12 @@ local run = function(pos, node)
..input * remain.." "..to..")")
else
meta:set_string("infotext", S("%s Has Bad Cabling"):format(machine_name))
- meta:set_int(to.."_EU_supply", 0)
+ if to then
+ meta:set_int(to.."_EU_supply", 0)
+ end
+ if from then
+ meta:set_int(from.."_EU_demand", 0)
+ end
return
end