From 9133946f50159b35ca7747a56549c0930f8b43c3 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Tue, 9 Aug 2022 12:45:17 +0200 Subject: fixed random crash or something funny --- src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index 94d12aa9b..c84660caf 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -12,13 +12,13 @@ import java.text.SimpleDateFormat object LorenzUtils { val isOnHypixel: Boolean - get() = HypixelData.hypixel + get() = HypixelData.hypixel && Minecraft.getMinecraft().thePlayer != null val inSkyblock: Boolean - get() = HypixelData.hypixel && HypixelData.skyblock + get() = isOnHypixel && HypixelData.skyblock val inDungeons: Boolean - get() = HypixelData.hypixel && HypixelData.skyblock && HypixelData.dungeon + get() = inSkyblock && HypixelData.dungeon const val DEBUG_PREFIX = "[Debug] ยง7" private val log = LorenzLogger("chat/mod_sent") -- cgit