From 16e77714f368ddd3da453bd7a74efb67ca3c09d9 Mon Sep 17 00:00:00 2001 From: dima_dencep Date: Fri, 17 Nov 2023 04:58:14 +0700 Subject: [PATCH] Fix enabling fog modify type --- .../mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java b/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java index cd85bba3..a7ffbbf4 100644 --- a/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java +++ b/src/main/java/me/flashyreese/mods/sodiumextra/client/gui/SodiumExtraGameOptionPages.java @@ -229,6 +229,7 @@ public static OptionPage render() { groups.add(OptionGroup.createBuilder() .add(OptionImpl.createBuilder(SodiumExtraGameOptions.RenderSettings.FogType.class, sodiumExtraOpts) + .setEnabled(SodiumExtraClientMod.mixinConfig().getOptions().get("mixin.fog").isEnabled()) .setName(Text.translatable("sodium-extra.option.fog_type")) .setTooltip(Text.translatable("sodium-extra.option.fog_type.tooltip")) .setControl(option -> new CyclingControl<>(option, SodiumExtraGameOptions.RenderSettings.FogType.class))