[vintage] Increase blend radius to 14 and fix compile of 1.12.2 #24
No files matched your search
@@ -26,6 +26,7 @@ import org.embeddedt.embeddium.impl.util.PositionUtil;
|
||||
import org.embeddedt.embeddium.impl.util.position.SectionPos;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.joml.Vector3i;
|
||||
import org.taumc.celeritas.CeleritasVintage;
|
||||
import org.taumc.celeritas.impl.compat.fluidlogged.FluidloggedCompat;
|
||||
import org.taumc.celeritas.impl.render.terrain.CeleritasWorldRenderer;
|
||||
import org.taumc.celeritas.impl.world.biome.BiomeColorCache;
|
||||
@@ -172,7 +173,7 @@ public class WorldSlice implements CeleritasBlockAccess {
|
||||
this.sections = new ClonedChunkSection[SECTION_TABLE_ARRAY_SIZE];
|
||||
this.blockStatesArrays = new IBlockState[SECTION_TABLE_ARRAY_SIZE][];
|
||||
this.biomeCaches = new Biome[SECTION_TABLE_ARRAY_SIZE][16 * 16];
|
||||
this.biomeColorCache = new BiomeColorCache(this, 3);
|
||||
this.biomeColorCache = new BiomeColorCache(this, CeleritasVintage.options().quality.biomeBlendRadius);
|
||||
if(!FluidloggedCompat.IS_LOADED) this.fluidStatesArrays = null;
|
||||
else this.fluidStatesArrays = new Object[SECTION_TABLE_ARRAY_SIZE][];
|
||||
|
||||
|
||||
+3
-3
@@ -17,12 +17,12 @@ public class BiomeColorHelperMixin {
|
||||
@Overwrite
|
||||
private static int getColorAtPos(IBlockAccess blockAccess, BlockPos pos, BiomeColorHelper.ColorResolver colorResolver)
|
||||
{
|
||||
int radius = CeleritasVintage.options().quality.biomeBlendRadius;
|
||||
|
||||
if (blockAccess instanceof CeleritasBlockAccess && radius == 0) {
|
||||
if (blockAccess instanceof CeleritasBlockAccess) {
|
||||
// Use Sodium's more efficient biome cache
|
||||
return ((CeleritasBlockAccess)blockAccess).getBlockTint(pos, colorResolver);
|
||||
}
|
||||
|
||||
int radius = CeleritasVintage.options().quality.biomeBlendRadius;
|
||||
if (radius == 0) {
|
||||
return colorResolver.getColorAtPos(blockAccess.getBiome(pos), pos);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user