Skip to content

Commit

Permalink
Fix REVERSE_MSPT and REVERSE_TPS boss bar fill modes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Nov 8, 2023
1 parent 4a06dc7 commit 48aea03
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ private static float ensureInRange(final double value) {
private BossBar.@NonNull Color color() {
switch (this.settings.fillMode()) {
case MSPT:
case REVERSE_MSPT:
final double mspt = this.tabTPS.platform().tickTimeService().averageMspt();
if (mspt < 25) {
return this.settings.colors().goodPerformance();
Expand All @@ -100,6 +101,7 @@ private static float ensureInRange(final double value) {
} else {
return this.settings.colors().lowPerformance();
}
case REVERSE_TPS:
case TPS:
final double tps = this.tabTPS.platform().tickTimeService().recentTps()[0];
if (tps > 18.50D) {
Expand Down

0 comments on commit 48aea03

Please sign in to comment.