From cedccb4401c555537e02e48f85270fb84cb5b233 Mon Sep 17 00:00:00 2001 From: DustyDave961 <144002335+DustyDave961@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:05:10 -0500 Subject: [PATCH] Update radiation.lua Unnecessary function removed. --- technic/radiation.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/technic/radiation.lua b/technic/radiation.lua index f712bc0..93d07c7 100644 --- a/technic/radiation.lua +++ b/technic/radiation.lua @@ -38,13 +38,6 @@ function technic.register_rad_resistance(node_name, resistance) cache_radiation_resistance[node_name] = nil -- Invalidate cache end --- Function to register multiple node resistances at once -function technic.register_multiple_resistances(resistances) - for node_name, resistance in pairs(resistances) do - technic.register_rad_resistance(node_name, resistance) - end -end - local S = technic.getter local node_resistances = { @@ -183,7 +176,9 @@ local node_resistances = { } -- Register all node resistances at once -technic.register_multiple_resistances(node_resistances) +for node_name, resistance in pairs(node_resistances) do + technic.register_rad_resistance(node_name, resistance) +end -- Function to register group-specific resistance function technic.register_group_resistance(group_name, resistance)