From 4775d98fb7e12f7210cf778351767828e551011d Mon Sep 17 00:00:00 2001 From: SmallJoker <mk939@ymail.com> Date: Thu, 20 Oct 2022 20:08:56 +0200 Subject: [PATCH] Unify and simplify LED/Lamp node definition --- technic/machines/MV/power_radiator.lua | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/machines/MV/power_radiator.lua b/technic/machines/MV/power_radiator.lua index 9349e66..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 @@ -146,6 +147,7 @@ }) minetest.register_abm({ + label = "Machines: run power radiator", nodenames = {"technic:power_radiator"}, interval = 1, chance = 1, @@ -176,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