From e01513093a33ea19a50be742244033405e2bc86c Mon Sep 17 00:00:00 2001 From: TitanPlayz <118145727+TitanPlayz100@users.noreply.github.com> Date: Tue, 29 Oct 2024 23:30:57 +1100 Subject: [PATCH] bug fix zenith --- src/mechanics/gamemode_extended.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mechanics/gamemode_extended.js b/src/mechanics/gamemode_extended.js index 251c268..0ea9167 100644 --- a/src/mechanics/gamemode_extended.js +++ b/src/mechanics/gamemode_extended.js @@ -109,8 +109,9 @@ export class Zenith { climbSpeedBar.value = point climbSpeedBar.max = require - document.styleSheets[1].cssRules[24].style.backgroundColor = color[speed - 1] - document.styleSheets[1].cssRules[23].style.backgroundColor = color[speed] + // changes css variable, better selection + document.getElementById("climbSpeedBar").style.setProperty("--background-colour", color[speed-1]) + document.getElementById("climbSpeedBar").style.setProperty("--bar-colour", color[speed]) } }