aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-12 02:11:41 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-12 02:11:41 +0100
commit9c3f2a176c085199875c7e32b4e7f6bd5f5485d0 (patch)
treed58a3fb452f971100815a0f8ecf36d0571025fae /src/main/java/at
parent0c2c73f61f0751675fb0520d98a6e3b1430c0966 (diff)
downloadskyhanni-9c3f2a176c085199875c7e32b4e7f6bd5f5485d0.tar.gz
skyhanni-9c3f2a176c085199875c7e32b4e7f6bd5f5485d0.tar.bz2
skyhanni-9c3f2a176c085199875c7e32b4e7f6bd5f5485d0.zip
onHypixel already checks if the player is not null. If the world is null the player is null as well.
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt3
1 files changed, 0 insertions, 3 deletions
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(?<profile>.*)".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
) {