diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-17 00:48:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 00:48:54 +0200 |
commit | c85ef72490105eced9cbe73e661f77255768015d (patch) | |
tree | 7801c31c14988b3712f97409241a9e80841f5066 | |
parent | c7b6a0683c5e578c3018b413c307c800b33b3943 (diff) | |
download | skyhanni-c85ef72490105eced9cbe73e661f77255768015d.tar.gz skyhanni-c85ef72490105eced9cbe73e661f77255768015d.tar.bz2 skyhanni-c85ef72490105eced9cbe73e661f77255768015d.zip |
Fix: Outside SkyBlock (#1810)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/enums/OutsideSbFeature.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/enums/OutsideSbFeature.kt b/src/main/java/at/hannibal2/skyhanni/config/enums/OutsideSbFeature.kt index c407de4f2..e334785c5 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/enums/OutsideSbFeature.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/enums/OutsideSbFeature.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.config.enums import at.hannibal2.skyhanni.SkyHanniMod +import net.minecraft.client.Minecraft enum class OutsideSbFeature(private val displayName: String) { MODIFY_VISUAL_WORDS("Modify Visual Words"), @@ -21,5 +22,6 @@ enum class OutsideSbFeature(private val displayName: String) { override fun toString() = displayName - fun isSelected() = SkyHanniMod.feature.misc.showOutsideSB.contains(this) + fun isSelected() = + Minecraft.getMinecraft().thePlayer != null && SkyHanniMod.feature.misc.showOutsideSB.contains(this) } |