From 9c3f2a176c085199875c7e32b4e7f6bd5f5485d0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 12 Dec 2023 02:11:41 +0100 Subject: onHypixel already checks if the player is not null. If the world is null the player is null as well. --- src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 7d2fffea0..e38854ba3 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -24,7 +24,6 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.network.FMLNetworkEvent import kotlin.concurrent.thread - class HypixelData { // TODO USE SH-REPO private val tabListProfilePattern = "§e§lProfile: §r§a(?.*)".toPattern() @@ -121,8 +120,6 @@ class HypixelData { // Remove this when NEU dependency is removed val currentTime = System.currentTimeMillis() if (LorenzUtils.onHypixel && - Minecraft.getMinecraft().thePlayer != null && - Minecraft.getMinecraft().theWorld != null && locrawData == null && currentTime - lastLocRaw > 15000 ) { -- cgit