aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-12 16:17:24 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-12 16:17:24 +0200
commit32ab6ef9c6a05298f681200ce01f8ffa56cabb18 (patch)
tree3a2a319b4087504904cee15b5480d4649f34b455 /src/main/java/at/hannibal2/skyhanni/features
parent7b5e92cf9b5b76e800cfb9b583c7f2fd56efbc35 (diff)
downloadskyhanni-32ab6ef9c6a05298f681200ce01f8ffa56cabb18.tar.gz
skyhanni-32ab6ef9c6a05298f681200ce01f8ffa56cabb18.tar.bz2
skyhanni-32ab6ef9c6a05298f681200ce01f8ffa56cabb18.zip
no longer show waypoints in sb
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mainlobby/halloweenwaypoints/BasketWaypoints.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mainlobby/halloweenwaypoints/BasketWaypoints.kt b/src/main/java/at/hannibal2/skyhanni/features/mainlobby/halloweenwaypoints/BasketWaypoints.kt
index be32f5a67..1a7165a3b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mainlobby/halloweenwaypoints/BasketWaypoints.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mainlobby/halloweenwaypoints/BasketWaypoints.kt
@@ -24,6 +24,9 @@ class BasketWaypoints {
if (!config.allWaypoints && !config.allEntranceWaypoints) return
if (!isHalloween) return
+ if (!HypixelData.hypixelLive) return // don't show outside live hypixel network (it's disabled on alpha)
+ if (LorenzUtils.inSkyBlock) return
+
val message = event.message
if (message.startsWith("§a§lYou found a Candy Basket! §r") || message == "§cYou already found this Candy Basket!") {
val basket = Basket.entries.minByOrNull { it.waypoint.distanceSqToPlayer() }!!
@@ -57,6 +60,8 @@ class BasketWaypoints {
@SubscribeEvent
fun onRenderWorld(event: RenderWorldLastEvent) {
+ if (!HypixelData.hypixelLive) return // don't show outside live hypixel network (it's disabled on alpha)
+ if (LorenzUtils.inSkyBlock) return
if (!isHalloween) return
if (config.allWaypoints) {