Skip to content

Commit

Permalink
Use the same vanilla terminology for biome blend option in config screen
Browse files Browse the repository at this point in the history
(e.g., 5x5 is a radius of 2)
1x1 still shows as 1x1 because Sodium always blend.

Signed-off-by: MeeniMc <[email protected]>
  • Loading branch information
MeeniMc committed Jan 19, 2024
1 parent cf27e14 commit 92f1bfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ public static OptionPage quality() {
.add(OptionImpl.createBuilder(int.class, vanillaOpts)
.setName(Text.translatable("options.biomeBlendRadius"))
.setTooltip(Text.translatable("sodium.options.biome_blend.tooltip"))
.setControl(option -> new SliderControl(option, 1, 7, 1, ControlValueFormatter.biomeBlend()))
.setBinding((opts, value) -> opts.getBiomeBlendRadius().setValue(value), opts -> opts.getBiomeBlendRadius().getValue())
.setControl(option -> new SliderControl(option, 1, 15, 2, ControlValueFormatter.biomeBlend()))
.setBinding((opts, value) -> opts.getBiomeBlendRadius().setValue((value-1)/2), opts -> opts.getBiomeBlendRadius().getValue()*2+1)
.setImpact(OptionImpact.LOW)
.setFlags(OptionFlag.REQUIRES_RENDERER_RELOAD)
.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static ControlValueFormatter brightness() {
}

static ControlValueFormatter biomeBlend() {
return (v) -> (v == 0) ? Text.translatable("gui.none") : Text.translatable("sodium.options.biome_blend.value", v);
return (v) -> Text.translatable("sodium.options.biome_blend.value", v, v);
}

Text format(int value);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/sodium/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"sodium.options.leaves_quality.tooltip": "Controls whether leaves will be rendered as transparent (fancy) or opaque (fast).",
"sodium.options.particle_quality.tooltip": "Controls the maximum number of particles which can be present on screen at any one time.",
"sodium.options.smooth_lighting.tooltip": "Enables the smooth lighting and shading of blocks in the world. This can very slightly increase the amount of time it takes to load or update a chunk, but it doesn't affect frame rates.",
"sodium.options.biome_blend.value": "%s block(s)",
"sodium.options.biome_blend.tooltip": "The distance (in blocks) which biome colors are smoothly blended across. Using higher values will greatly increase the amount of time it takes to load or update chunks, for diminishing improvements in quality.",
"sodium.options.biome_blend.value": "%sx%s block(s)",
"sodium.options.biome_blend.tooltip": "The distance (in blocks) which biome colors are smoothly blended across. Default is 5x5. Using higher values will greatly increase the amount of time it takes to load or update chunks, for diminishing improvements in quality.",
"sodium.options.entity_distance.tooltip": "The render distance multiplier used by entity rendering. Smaller values decrease, and larger values increase, the maximum distance at which entities will be rendered.",
"sodium.options.entity_shadows.tooltip": "If enabled, basic shadows will be rendered beneath mobs and other entities.",
"sodium.options.vignette.name": "Vignette",
Expand Down

0 comments on commit 92f1bfa

Please sign in to comment.