Increase bpe to 15 as a temporary fix

This commit is contained in:
themode 2021-01-06 21:33:38 +01:00
parent 4107c768a3
commit 8d1dda74d0
2 changed files with 5 additions and 5 deletions

View File

@ -68,8 +68,8 @@ public class DynamicChunk extends Chunk {
public DynamicChunk(@Nullable Biome[] biomes, int chunkX, int chunkZ) { public DynamicChunk(@Nullable Biome[] biomes, int chunkX, int chunkZ) {
this(biomes, chunkX, chunkZ, this(biomes, chunkX, chunkZ,
new PaletteStorage(6, 2), new PaletteStorage(15, 2),
new PaletteStorage(6, 2)); new PaletteStorage(15, 2));
} }
@Override @Override

View File

@ -224,8 +224,9 @@ public class PaletteStorage implements PublicCloneable<PaletteStorage> {
* *
* @param newBitsPerEntry the new bits per entry count * @param newBitsPerEntry the new bits per entry count
*/ */
private synchronized void resize(int newBitsPerEntry) { private void resize(int newBitsPerEntry) {
newBitsPerEntry = fixBitsPerEntry(newBitsPerEntry); newBitsPerEntry = fixBitsPerEntry(newBitsPerEntry);
PaletteStorage paletteStorageCache = new PaletteStorage(newBitsPerEntry, bitsIncrement); PaletteStorage paletteStorageCache = new PaletteStorage(newBitsPerEntry, bitsIncrement);
paletteStorageCache.paletteBlockMaps = paletteBlockMaps; paletteStorageCache.paletteBlockMaps = paletteBlockMaps;
paletteStorageCache.blockPaletteMaps = blockPaletteMaps; paletteStorageCache.blockPaletteMaps = blockPaletteMaps;
@ -239,13 +240,12 @@ public class PaletteStorage implements PublicCloneable<PaletteStorage> {
} }
} }
this.bitsPerEntry = newBitsPerEntry; this.bitsPerEntry = paletteStorageCache.bitsPerEntry;
this.valuesPerLong = paletteStorageCache.valuesPerLong; this.valuesPerLong = paletteStorageCache.valuesPerLong;
this.hasPalette = paletteStorageCache.hasPalette; this.hasPalette = paletteStorageCache.hasPalette;
this.sectionBlocks = paletteStorageCache.sectionBlocks; this.sectionBlocks = paletteStorageCache.sectionBlocks;
} }
/** /**