Skip to content

Commit 1a0ecfe

Browse files
committed
Use the same vanilla terminology for biome blend option in config screen
(e.g., 5x5 is a radius of 2) 1x1 still shows as 1x1 because Sodium always blend. Signed-off-by: MeeniMc <[email protected]>
1 parent cf27e14 commit 1a0ecfe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/java/me/jellysquid/mods/sodium/client/gui/SodiumGameOptionPages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ public static OptionPage quality() {
193193
.add(OptionImpl.createBuilder(int.class, vanillaOpts)
194194
.setName(Text.translatable("options.biomeBlendRadius"))
195195
.setTooltip(Text.translatable("sodium.options.biome_blend.tooltip"))
196-
.setControl(option -> new SliderControl(option, 1, 7, 1, ControlValueFormatter.biomeBlend()))
197-
.setBinding((opts, value) -> opts.getBiomeBlendRadius().setValue(value), opts -> opts.getBiomeBlendRadius().getValue())
196+
.setControl(option -> new SliderControl(option, 1, 15, 2, ControlValueFormatter.biomeBlend()))
197+
.setBinding((opts, value) -> opts.getBiomeBlendRadius().setValue((value-1)/2), opts -> opts.getBiomeBlendRadius().getValue()*2+1)
198198
.setImpact(OptionImpact.LOW)
199199
.setFlags(OptionFlag.REQUIRES_RENDERER_RELOAD)
200200
.build())

src/main/java/me/jellysquid/mods/sodium/client/gui/options/control/ControlValueFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static ControlValueFormatter brightness() {
2424
}
2525

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

3030
Text format(int value);

src/main/resources/assets/sodium/lang/en_us.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"sodium.options.leaves_quality.tooltip": "Controls whether leaves will be rendered as transparent (fancy) or opaque (fast).",
2525
"sodium.options.particle_quality.tooltip": "Controls the maximum number of particles which can be present on screen at any one time.",
2626
"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.",
27-
"sodium.options.biome_blend.value": "%s block(s)",
28-
"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.",
27+
"sodium.options.biome_blend.value": "%sx%s block(s)",
28+
"sodium.options.biome_blend.tooltip": "The distance (in blocks) which biomes color blend smoothly. 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.",
2929
"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.",
3030
"sodium.options.entity_shadows.tooltip": "If enabled, basic shadows will be rendered beneath mobs and other entities.",
3131
"sodium.options.vignette.name": "Vignette",

0 commit comments

Comments
 (0)