aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2023-10-14 16:25:09 +0900
committerGitHub <noreply@github.com>2023-10-14 16:25:09 +0900
commit5afdc28833bd705b9e1b622352fd258ab7ecd662 (patch)
tree4536059b4e8c4b3e1538797c71dbc3c5b9e7180f
parent4dbdce0b10c5578c9969f3e8c06bc9b96b5f339c (diff)
downloadSkyblock-Dungeons-Guide-5afdc28833bd705b9e1b622352fd258ab7ecd662.tar.gz
Skyblock-Dungeons-Guide-5afdc28833bd705b9e1b622352fd258ab7ecd662.tar.bz2
Skyblock-Dungeons-Guide-5afdc28833bd705b9e1b622352fd258ab7ecd662.zip
- Fix #395 crash from incorrect parsing of countdown (#423)
Signed-off-by: syeyoung <cyoung06@naver.com>
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java
index 13ab6a46..afe84523 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java
@@ -111,8 +111,7 @@ public class FeatureEpicCountdown extends SimpleFeature {
if (time.contains(":")) {
secondsLeft = Integer.parseInt(time.split(":")[0]) * 60 + Integer.parseInt(time.split(":")[1]);
updatedAt = System.currentTimeMillis();
- }
- if(!time.isEmpty()){
+ } else if(!time.isEmpty()){
secondsLeft = Integer.parseInt(time);
updatedAt = System.currentTimeMillis();
}