diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-15 23:15:20 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-15 23:15:20 +0100 |
commit | 6cd6e481ce224767a3cfcffc96f624d087c4ace8 (patch) | |
tree | 272dc50ff8949cf1a52718f251d903cb4a3cd502 /src/main/java/at/hannibal2/skyhanni/features/event | |
parent | 1b6b0d9e34a66af9b95c456b3897d39eb188a856 (diff) | |
download | skyhanni-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/features/event')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt | 9 |
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 { |