File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/lol/hyper/timebar/timers Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2323
2424 <groupId >lol.hyper</groupId >
2525 <artifactId >timebar</artifactId >
26- <version >1.4.8</version >
26+ <version >1.4.8-hotfix </version >
2727 <packaging >jar</packaging >
2828
2929 <name >TimeBar</name >
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ public void run() {
104104 }
105105 // get the current season & date of the world
106106 Season currentSeason = this .seasonsAPI .getSeason (world );
107+ String seasonName = currentSeason .getConfigName ().toUpperCase (Locale .ROOT );
107108 Date currentDate = this .seasonsAPI .getDate (world );
108109 // this should be null if RealisticSeasons hasn't bet setup yet
109110 if (currentDate == null ) {
@@ -148,7 +149,7 @@ public void run() {
148149 worldTimeTracker .setDayCount (dayCount );
149150 worldTimeTracker .setDayPercent (timePercent );
150151
151- String colorConfig = worldTimeTracker .timeBar .realisticSeasonsConfig .getString ("colors." + currentSeason . toString (). toUpperCase ( Locale . ROOT ) );
152+ String colorConfig = worldTimeTracker .timeBar .realisticSeasonsConfig .getString ("colors." + seasonName );
152153 // load from config first
153154 BossBar .Color color = worldTimeTracker .timeBar .bossBarColor ;
154155 ;
You can’t perform that action at this time.
0 commit comments