From 0c2c73f61f0751675fb0520d98a6e3b1430c0966 Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Mon, 11 Dec 2023 17:10:41 -0800 Subject: Fix locraw sending outside Hypixel (#791) Fixed locraw sending outside Hypixel. #791 --- src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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 -- cgit