From 47e392bd8853d6e39ea634b69447d92e28e5ba59 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Fri, 15 Dec 2023 23:09:23 -0500 Subject: [PATCH] Update heatglow.js --- mods/heatglow.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/heatglow.js b/mods/heatglow.js index a32f16ff..eb063be4 100644 --- a/mods/heatglow.js +++ b/mods/heatglow.js @@ -23,8 +23,9 @@ const heatfunc = function(pixel){ pixel.color = "rgb(" + pixel.newR + "," + pixel.newG + "," + pixel.newB + ")"; } }; - const metals = ["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead"]; -metals.forEach(metal => { + if (!eLists.metals) { eLists.metals = [] } + eLists.metals = eLists.metals.concat(["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead"]) +eLists.metals.forEach(metal => { const prefunc = elements[metal].tick; if (!prefunc){ elements[metal].tick = heatfunc;