aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt6
1 files changed, 3 insertions, 3 deletions
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")