From 5afdc28833bd705b9e1b622352fd258ab7ecd662 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Sat, 14 Oct 2023 16:25:09 +0900 Subject: - Fix #395 crash from incorrect parsing of countdown (#423) Signed-off-by: syeyoung --- .../dungeonsguide/mod/features/impl/etc/FeatureEpicCountdown.java | 3 +-- 1 file changed, 1 insertion(+), 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(); } -- cgit