mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 03:36:03 +00:00
remove unneeded specialised column impl
This commit is contained in:
@@ -53,7 +53,7 @@ public class CachingBiomeProvider implements BiomeProvider, Handle {
|
||||
|
||||
@Override
|
||||
public Column<Biome> getColumn(int x, int z, long seed, int min, int max) {
|
||||
return columnCache.computeIfAbsent(MathUtil.squash(x, z), k -> delegate.getColumn(x, z, seed, min, max));
|
||||
return columnCache.computeIfAbsent(MathUtil.squash(x, z), k -> new BiomeColumn(this, min, max, x, z, seed));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ChunkLocalCachingBiomeProvider extends CachingBiomeProvider {
|
||||
int index = (x & 15) + (16 * (z & 15));
|
||||
Column<Biome> column = columnCache[index];
|
||||
if(column == null) {
|
||||
column = delegate.getColumn(x, z, seed, min, max);
|
||||
column = new BiomeColumn(this, min, max, x, z, seed);
|
||||
columnCache[index] = column;
|
||||
}
|
||||
return column;
|
||||
|
||||
Reference in New Issue
Block a user