From 50d16a4f7c29a206d67ff0bdb0e0a94db824357f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 2 May 2024 16:00:38 +0200 Subject: Fix: Effigies (#1649) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../config/features/rift/area/stillgorechateau/EffigiesConfig.java | 2 +- .../features/rift/area/stillgorechateau/RiftBloodEffigies.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 } -- cgit