Skip to content

Commit a80a1c4

Browse files
committed
1.4.8-hotfix
1 parent 765873e commit a80a1c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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>

src/main/java/lol/hyper/timebar/timers/RealisticSeasonsTask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
;

0 commit comments

Comments
 (0)