diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-19 14:57:23 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-01-19 14:57:23 +0100 |
commit | a569135dd6d518d0a9dc522189f04544811c2ee7 (patch) | |
tree | 012ace703d20d0d18d7b3c814ed6f1f62946b280 /src | |
parent | 234276f624d367479f3b75595280a8da7e55b052 (diff) | |
download | skyhanni-a569135dd6d518d0a9dc522189f04544811c2ee7.tar.gz skyhanni-a569135dd6d518d0a9dc522189f04544811c2ee7.tar.bz2 skyhanni-a569135dd6d518d0a9dc522189f04544811c2ee7.zip |
Don't use diana guess logic when disabled or not on hub.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt index f32210f45..c1a0c1a8b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt @@ -1,5 +1,7 @@ package at.hannibal2.skyhanni.features.event.diana +import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.BurrowDetectEvent import at.hannibal2.skyhanni.events.BurrowDugEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -83,6 +85,8 @@ class GriffinBurrowParticleFinder { @SubscribeEvent(priority = EventPriority.LOW, receiveCanceled = true) fun onChatPacket(event: PacketEvent.ReceiveEvent) { if (!LorenzUtils.inSkyBlock) return + if (!SkyHanniMod.feature.diana.burrowsSoopyGuess) return + if (LorenzUtils.skyBlockIsland != IslandType.HUB) return val packet = event.packet if (packet is S2APacketParticles) { @@ -152,6 +156,8 @@ class GriffinBurrowParticleFinder { @SubscribeEvent fun onChatMessage(event: LorenzChatEvent) { + if (!SkyHanniMod.feature.diana.burrowsSoopyGuess) return + if (LorenzUtils.skyBlockIsland != IslandType.HUB) return val message = event.message if (message.startsWith("§eYou dug out a Griffin Burrow!") || message == "§eYou finished the Griffin burrow chain! §r§7(4/4)" @@ -172,6 +178,8 @@ class GriffinBurrowParticleFinder { @SubscribeEvent fun onSendPacket(event: PacketEvent.SendEvent) { if (!LorenzUtils.inSkyBlock) return + if (!SkyHanniMod.feature.diana.burrowsSoopyGuess) return + if (LorenzUtils.skyBlockIsland != IslandType.HUB) return val packet = event.packet val pos = when { packet is C07PacketPlayerDigging && packet.status == C07PacketPlayerDigging.Action.START_DESTROY_BLOCK -> { |