aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-02 16:00:38 +0200
committerGitHub <noreply@github.com>2024-05-02 16:00:38 +0200
commit50d16a4f7c29a206d67ff0bdb0e0a94db824357f (patch)
treeaddb048330840f058a67f5c5e233f52aef5e6c9e /src/main/java
parentb85f0f71e62daf79f6de70875581135a2dab40ad (diff)
downloadskyhanni-50d16a4f7c29a206d67ff0bdb0e0a94db824357f.tar.gz
skyhanni-50d16a4f7c29a206d67ff0bdb0e0a94db824357f.tar.bz2
skyhanni-50d16a4f7c29a206d67ff0bdb0e0a94db824357f.zip
Fix: Effigies (#1649)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/rift/area/stillgorechateau/EffigiesConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/area/stillgorechateau/RiftBloodEffigies.kt5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/stillgorechateau/EffigiesConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/stillgorechateau/EffigiesConfig.java
index 61c4d92c7..56fa6e686 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/stillgorechateau/EffigiesConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/rift/area/stillgorechateau/EffigiesConfig.java
@@ -21,7 +21,7 @@ public class EffigiesConfig {
public boolean respawningSoon = false;
@Expose
- @ConfigOption(name = "Respawning Time", desc = "Time before effigies respawn to show.")
+ @ConfigOption(name = "Respawning Time", desc = "Time in minutes before effigies respawn to show.")
@ConfigEditorSlider(
minValue = 1,
maxValue = 15,
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/stillgorechateau/RiftBloodEffigies.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/stillgorechateau/RiftBloodEffigies.kt
index b31c7fb40..844fca7fc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/stillgorechateau/RiftBloodEffigies.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/stillgorechateau/RiftBloodEffigies.kt
@@ -144,9 +144,10 @@ object RiftBloodEffigies {
continue
}
- if (config.respawningSoon && duration.passedSince() < config.respwningSoonTime.minutes) {
+ val timeUntil = duration.timeUntil()
+ if (config.respawningSoon && timeUntil <= config.respwningSoonTime.minutes) {
event.drawWaypointFilled(location, LorenzColor.YELLOW.toColor(), seeThroughBlocks = true)
- val time = duration.timeUntil()
+ val time = timeUntil.format()
event.drawDynamicText(location, "§e$name is respawning §b$time", 1.5)
continue
}