From 18980f8da899ba2fc1c8c153f57c81cfcc60d504 Mon Sep 17 00:00:00 2001 From: GGodPL <46885632+GGodPL@users.noreply.github.com> Date: Tue, 1 Aug 2023 22:50:09 +0200 Subject: [PATCH] Update elementsManager.js --- mods/elementsManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/elementsManager.js b/mods/elementsManager.js index c067222a..781f593a 100644 --- a/mods/elementsManager.js +++ b/mods/elementsManager.js @@ -397,6 +397,8 @@ if (enabledMods.includes(mod)) { } const parseColor = (colorString) => { + // technically color arrays are handled differently, but ill add it just in case + if (colorString instanceof Array) return parseColor(colorString[0]); if (typeof colorString != "string") return "#ffffff"; if (colorString.startsWith("rgb(")) { const color = colorString.replace("rgb(", "").replace(")", "");