Skip to content

Commit

Permalink
bug fix zenith
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanPlayz100 committed Oct 29, 2024
1 parent 4bb59a8 commit e015130
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mechanics/gamemode_extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

}
Expand Down

0 comments on commit e015130

Please sign in to comment.