summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorBrandon <brandon.wamboldt@gmail.com>2023-12-13 20:13:57 -0400
committerGitHub <noreply@github.com>2023-12-14 01:13:57 +0100
commitf1454ea7831976daa615290ea32a369f3ace6216 (patch)
tree4db043e5aa77c1de180c4445e68c6b72df563b59 /src/main/java/at/hannibal2/skyhanni/features/event
parent18e663ea673ba938394fdafbb2ed37f2a795da4d (diff)
downloadskyhanni-f1454ea7831976daa615290ea32a369f3ace6216.tar.gz
skyhanni-f1454ea7831976daa615290ea32a369f3ace6216.tar.bz2
skyhanni-f1454ea7831976daa615290ea32a369f3ace6216.zip
Support Badlion sendcoords format and only show inquisitor waypoints in the hub (#796)
Added Support to read Badlion sendcoords format. Fixed show inquisitor waypoints outside of the hub. #796
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
index 5532d70e9..488f7ca09 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt
@@ -1,6 +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.EntityHealthUpdateEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.LorenzKeyPressEvent
@@ -216,7 +217,7 @@ object InquisitorWaypointShare {
@SubscribeEvent(priority = EventPriority.LOW, receiveCanceled = true)
fun onFirstChatEvent(event: PacketEvent.ReceiveEvent) {
- if (!isEnabled()) return
+ if (!isEnabled() || LorenzUtils.skyBlockIsland != IslandType.HUB) return
val packet = event.packet
if (packet !is S02PacketChat) return
val messageComponent = packet.chatComponent