aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-15 23:15:20 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-15 23:15:20 +0100
commit6cd6e481ce224767a3cfcffc96f624d087c4ace8 (patch)
tree272dc50ff8949cf1a52718f251d903cb4a3cd502 /src/main/java/at/hannibal2/skyhanni
parent1b6b0d9e34a66af9b95c456b3897d39eb188a856 (diff)
downloadskyhanni-6cd6e481ce224767a3cfcffc96f624d087c4ace8.tar.gz
skyhanni-6cd6e481ce224767a3cfcffc96f624d087c4ace8.tar.bz2
skyhanni-6cd6e481ce224767a3cfcffc96f624d087c4ace8.zip
Resetting guess and burrow locations when clearing the burrows at Diana NPC.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
index b246b374a..f91d6f809 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
@@ -110,15 +110,22 @@ object GriffinBurrowHelper {
if (event.message.startsWith("§c ☠ §r§7You were killed by §r")) {
particleBurrows = particleBurrows.editCopy { keys.removeIf { this[it] == BurrowType.MOB } }
}
+ if (event.message == "§6Poof! §r§eYou have cleared your griffin burrows!") {
+ reset()
+ }
}
@SubscribeEvent
fun onWorldChange(event: LorenzWorldChangeEvent) {
+ reset()
+ }
+
+ private fun reset() {
guessLocation = null
targetLocation = null
animationLocation = null
lastDug = null
- particleBurrows = particleBurrows.editCopy { clear() }
+ particleBurrows = emptyMap()
}
private fun findBlock(point: LorenzVec): LorenzVec {