aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
authorsyeyoung <cyougn06@naver.com>2021-12-19 15:22:06 +0900
committersyeyoung <cyougn06@naver.com>2021-12-19 15:22:06 +0900
commitf3238060717b001d6721915e696f30875c2ad0c2 (patch)
tree3ddfb95f9320254e02c81b85aee0248b2113e78c /src/main/java/kr/syeyoung/dungeonsguide/features
parentbf5daaf551a1b577066527e5366b455a787971c8 (diff)
downloadSkyblock-Dungeons-Guide-f3238060717b001d6721915e696f30875c2ad0c2.tar.gz
Skyblock-Dungeons-Guide-f3238060717b001d6721915e696f30875c2ad0c2.tar.bz2
Skyblock-Dungeons-Guide-f3238060717b001d6721915e696f30875c2ad0c2.zip
- Fix Dungeon Realtime resetting time on dungeon end instead of dungeon leave
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRealTime.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRealTime.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRealTime.java
index fa69f006..90f6dd01 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRealTime.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureDungeonRealTime.java
@@ -20,6 +20,7 @@ package kr.syeyoung.dungeonsguide.features.impl.dungeon;
import kr.syeyoung.dungeonsguide.config.types.AColor;
import kr.syeyoung.dungeonsguide.features.listener.DungeonEndListener;
+import kr.syeyoung.dungeonsguide.features.listener.DungeonQuitListener;
import kr.syeyoung.dungeonsguide.features.listener.DungeonStartListener;
import kr.syeyoung.dungeonsguide.features.text.StyledText;
import kr.syeyoung.dungeonsguide.features.text.TextHUDFeature;
@@ -30,7 +31,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-public class FeatureDungeonRealTime extends TextHUDFeature implements DungeonStartListener, DungeonEndListener {
+public class FeatureDungeonRealTime extends TextHUDFeature implements DungeonStartListener, DungeonQuitListener {
public FeatureDungeonRealTime() {
super("Dungeon.Dungeon Information", "Display Real Time-Dungeon Time", "Display how much real time has passed since dungeon run started", "dungeon.stats.realtime", true, getFontRenderer().getStringWidth("Time(Real): 59m 59s"), getFontRenderer().FONT_HEIGHT);
this.setEnabled(false);
@@ -80,12 +81,12 @@ public class FeatureDungeonRealTime extends TextHUDFeature implements DungeonSta
}
@Override
- public void onDungeonEnd() {
- started = -1;
+ public void onDungeonStart() {
+ started= System.currentTimeMillis();
}
@Override
- public void onDungeonStart() {
- started= System.currentTimeMillis();
+ public void onDungeonQuit() {
+ started = -1;
}
}