[vintage] Increase blend radius to 14 and fix compile of 1.12.2 #24

Merged
embeddedt merged 17 commits from karnatour/celeritas:stonecutter into stonecutter 2026-03-12 19:23:39 -04:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 63fd6b1cdc - Show all commits

No files matched your search

@@ -25,7 +25,7 @@ public abstract class BiomeColorCache<BIOME, RESOLVER> {
public BiomeColorCache(PositionalSupplier<BIOME> biomeData, int blendRadius) { public BiomeColorCache(PositionalSupplier<BIOME> biomeData, int blendRadius) {
this.biomeData = biomeData; this.biomeData = biomeData;
this.blendRadius = Math.min(7, blendRadius); this.blendRadius = Math.min(14, blendRadius);
this.sizeXZ = 16 + ((NEIGHBOR_BLOCK_RADIUS + this.blendRadius) * 2); this.sizeXZ = 16 + ((NEIGHBOR_BLOCK_RADIUS + this.blendRadius) * 2);
this.sizeY = 16 + (NEIGHBOR_BLOCK_RADIUS * 2); this.sizeY = 16 + (NEIGHBOR_BLOCK_RADIUS * 2);
@@ -209,7 +209,7 @@ public class SodiumGameOptionPages {
.setId(StandardOptions.Option.BIOME_BLEND.cast()) .setId(StandardOptions.Option.BIOME_BLEND.cast())
.setName(TextComponent.translatable("sodium.options.biomeBlendRadius")) .setName(TextComponent.translatable("sodium.options.biomeBlendRadius"))
.setTooltip(TextComponent.translatable("sodium.options.biome_blend.tooltip")) .setTooltip(TextComponent.translatable("sodium.options.biome_blend.tooltip"))
.setControl(option -> new SliderControl(option, 0, 7, 1, ControlValueFormatter.biomeBlend())) .setControl(option -> new SliderControl(option, 0, 14, 1, ControlValueFormatter.biomeBlend()))
.setBinding((opts, value) -> opts.quality.legacyBiomeBlendRadius = value, opts -> opts.quality.legacyBiomeBlendRadius) .setBinding((opts, value) -> opts.quality.legacyBiomeBlendRadius = value, opts -> opts.quality.legacyBiomeBlendRadius)
.setImpact(OptionImpact.LOW) .setImpact(OptionImpact.LOW)
.setFlags(OptionFlag.REQUIRES_RENDERER_RELOAD) .setFlags(OptionFlag.REQUIRES_RENDERER_RELOAD)