diff --git a/src/main/java/me/cortex/nvidium/mixin/sodium/MixinEmbeddiumGameOptionPages.java b/src/main/java/me/cortex/nvidium/mixin/sodium/MixinEmbeddiumGameOptionPages.java index 3fc6c78d..a33cd58d 100644 --- a/src/main/java/me/cortex/nvidium/mixin/sodium/MixinEmbeddiumGameOptionPages.java +++ b/src/main/java/me/cortex/nvidium/mixin/sodium/MixinEmbeddiumGameOptionPages.java @@ -3,7 +3,6 @@ import me.cortex.nvidium.Nvidium; import me.jellysquid.mods.sodium.client.SodiumClientMod; import me.jellysquid.mods.sodium.client.gui.SodiumGameOptionPages; -import me.jellysquid.mods.sodium.client.gui.options.OptionGroup; import me.jellysquid.mods.sodium.client.gui.options.OptionImpl; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; @@ -16,7 +15,8 @@ public class MixinEmbeddiumGameOptionPages { ordinal = 2), method = "advanced", remap = false) private static OptionImpl faceculling(OptionImpl.Builder builder) { builder.setEnabled(!Nvidium.IS_ENABLED); - SodiumClientMod.options().performance.useTranslucentFaceSorting = false; + if (Nvidium.IS_ENABLED) + SodiumClientMod.options().performance.useTranslucentFaceSorting = false; return builder.build(); } }