Skip to content

Commit

Permalink
return option to enable clouds
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Jan 13, 2024
1 parent bdf3110 commit ce22790
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,13 @@ public static OptionPage general() {
.setControl(opt -> new SliderControl(opt, 0, 100, 1, ControlValueFormatter.brightness()))
.setBinding((opts, value) -> opts.gammaSetting = value * 0.01F, (opts) -> (int) (opts.gammaSetting / 0.01F))
.build())
// TODO
/*.add(OptionImpl.createBuilder(boolean.class, sodiumOpts)
.add(OptionImpl.createBuilder(boolean.class, sodiumOpts)
.setName(new TextComponentTranslation("sodium.options.clouds.name"))
.setTooltip(new TextComponentTranslation("sodium.options.clouds.tooltip"))
.setControl(TickBoxControl::new)
.setBinding((opts, value) -> {
opts.quality.enableClouds = value;
if (MinecraftClient.isFabulousGraphicsOrBetter()) {
Framebuffer framebuffer = MinecraftClient.getInstance().worldRenderer.getCloudsFramebuffer();
if (framebuffer != null) {
framebuffer.clear(MinecraftClient.IS_SYSTEM_MAC);
}
}
}, (opts) -> opts.quality.enableClouds)
.setBinding((opts, value) -> opts.quality.enableClouds = value, (opts) -> opts.quality.enableClouds)
.setImpact(OptionImpact.LOW)
.build())*/
.build())
.build());

groups.add(OptionGroup.createBuilder()
Expand Down

0 comments on commit ce22790

Please sign in to comment.