File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
common/src/main/java/net/caffeinemc/mods/sodium/client/gui Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -439,11 +439,12 @@ private OptionPageBuilder buildQualityPage(ConfigBuilder builder) {
439439 Component .translatable ("options.graphics.fancy" ),
440440 Component .translatable ("options.graphics.fabulous" )))
441441 .setDefaultValue (GraphicsStatus .FANCY )
442- .setAllowedValues (
443- Minecraft .getInstance ().isRunning () && !Minecraft .getInstance ().getGpuWarnlistManager ().isSkippingFabulous () ?
444- Set .of (GraphicsStatus .FAST , GraphicsStatus .FANCY ) :
445- Set .of (GraphicsStatus .values ())
446- )
442+ .setAllowedValuesProvider (state -> {
443+ if (Minecraft .getInstance ().isRunning () && Minecraft .getInstance ().getGpuWarnlistManager ().isSkippingFabulous ()) {
444+ return Set .of (GraphicsStatus .FAST , GraphicsStatus .FANCY );
445+ }
446+ return Set .of (GraphicsStatus .values ());
447+ })
447448 .setBinding (this .vanillaOpts .graphicsMode ()::set , this .vanillaOpts .graphicsMode ()::get )
448449 .setImpact (OptionImpact .HIGH )
449450 .setFlags (OptionFlag .REQUIRES_RENDERER_RELOAD )
You can’t perform that action at this time.
0 commit comments