aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-12-11 17:10:41 -0800
committerGitHub <noreply@github.com>2023-12-12 02:10:41 +0100
commit0c2c73f61f0751675fb0520d98a6e3b1430c0966 (patch)
treee3f3302732120420d711abffefe44637e197b24e /src
parent29a21538cfd6f7cf4e0ba52e0d69137213909e8b (diff)
downloadskyhanni-0c2c73f61f0751675fb0520d98a6e3b1430c0966.tar.gz
skyhanni-0c2c73f61f0751675fb0520d98a6e3b1430c0966.tar.bz2
skyhanni-0c2c73f61f0751675fb0520d98a6e3b1430c0966.zip
Fix locraw sending outside Hypixel (#791)
Fixed locraw sending outside Hypixel. #791
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
index 8e7379365..7d2fffea0 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt
@@ -120,7 +120,8 @@ class HypixelData {
// NEU and have NEU send it.
// Remove this when NEU dependency is removed
val currentTime = System.currentTimeMillis()
- if (Minecraft.getMinecraft().thePlayer != null &&
+ if (LorenzUtils.onHypixel &&
+ Minecraft.getMinecraft().thePlayer != null &&
Minecraft.getMinecraft().theWorld != null &&
locrawData == null &&
currentTime - lastLocRaw > 15000