From c85ef72490105eced9cbe73e661f77255768015d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Fri, 17 May 2024 00:48:54 +0200 Subject: Fix: Outside SkyBlock (#1810) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/config/enums/OutsideSbFeature.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) } -- cgit