diff options
author | Walker Selby <git@walkerselby.com> | 2023-12-11 17:10:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 02:10:41 +0100 |
commit | 0c2c73f61f0751675fb0520d98a6e3b1430c0966 (patch) | |
tree | e3f3302732120420d711abffefe44637e197b24e /src/main | |
parent | 29a21538cfd6f7cf4e0ba52e0d69137213909e8b (diff) | |
download | skyhanni-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/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 3 |
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 |