From b96c3cfba21aa02896700d425a8e67a8850e930e Mon Sep 17 00:00:00 2001 From: ferriarnus <61201275+ferriarnus@users.noreply.github.com> Date: Sat, 6 Jan 2024 15:42:59 +0100 Subject: [PATCH] Update MixinEmbeddiumGameOptionPages.java --- .../nvidium/mixin/sodium/MixinEmbeddiumGameOptionPages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }