From 1d0687556a52891aeadc0e8d9a58e44c53cb826b Mon Sep 17 00:00:00 2001 From: Zefram <zefram@fysh.org> Date: Fri, 15 Aug 2014 13:25:46 +0200 Subject: [PATCH] Fix music player's sound management --- technic/machines/supply_converter.lua | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/technic/machines/supply_converter.lua b/technic/machines/supply_converter.lua index 5cf999d..d89c3c1 100644 --- a/technic/machines/supply_converter.lua +++ b/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 -- Gitblit v1.8.0