From 718a5beda197cd0a775fd41aedfb5b1bbd5d1d8b Mon Sep 17 00:00:00 2001 From: ZettaScript <contact@zettascript.org> Date: Thu, 20 Oct 2022 17:56:10 +0200 Subject: [PATCH] Supply converter: demany only the needed power (#577) --- technic/machines/MV/power_radiator.lua | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/technic/machines/MV/power_radiator.lua b/technic/machines/MV/power_radiator.lua index 623af34..329f055 100644 --- a/technic/machines/MV/power_radiator.lua +++ b/technic/machines/MV/power_radiator.lua @@ -36,7 +36,8 @@ end -- Appliances: --- has_supply: pos of supply node if the appliance has a power radiator near with sufficient power for the demand else "" +-- has_supply: pos of supply node if the appliance has a power radiator near +-- with sufficient power for the demand else "" -- EU_demand: The power demand of the device. -- EU_charge: Actual use. set to EU_demand if active==1 -- active: set to 1 if the device is on @@ -177,8 +178,6 @@ -- The supply radius local rad = power_radius - local meta1 = nil - local pos1 = {} local used_charge = 0 -- Index all nodes within supply range -- Gitblit v1.8.0