diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2023-10-14 16:25:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 16:25:09 +0900 |
commit | 5afdc28833bd705b9e1b622352fd258ab7ecd662 (patch) | |
tree | 4536059b4e8c4b3e1538797c71dbc3c5b9e7180f /mod/src/main | |
parent | 4dbdce0b10c5578c9969f3e8c06bc9b96b5f339c (diff) | |
download | Skyblock-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>
Diffstat (limited to 'mod/src/main')
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java | 3 |
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(); } |