diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-09 12:45:17 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-09 12:45:17 +0200 |
commit | 9133946f50159b35ca7747a56549c0930f8b43c3 (patch) | |
tree | 708f9efd81027251a8e0cf2f9c5bf803021db870 /src/main | |
parent | 230a6e7227bd3b91afa1698b6f3405535c665ffa (diff) | |
download | skyhanni-9133946f50159b35ca7747a56549c0930f8b43c3.tar.gz skyhanni-9133946f50159b35ca7747a56549c0930f8b43c3.tar.bz2 skyhanni-9133946f50159b35ca7747a56549c0930f8b43c3.zip |
fixed random crash or something funny
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 6 |
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") |