remove unneeded specialised column impl

This commit is contained in:
dfsek
2022-06-14 18:56:51 -07:00
parent eac8d3b4e8
commit 61a40b4825
4 changed files with 2 additions and 83 deletions

View File

@@ -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

View File

@@ -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;