mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-26 10:01:36 +01:00
Increase bpe to 15 as a temporary fix
This commit is contained in:
parent
4107c768a3
commit
8d1dda74d0
@ -68,8 +68,8 @@ public class DynamicChunk extends Chunk {
|
||||
|
||||
public DynamicChunk(@Nullable Biome[] biomes, int chunkX, int chunkZ) {
|
||||
this(biomes, chunkX, chunkZ,
|
||||
new PaletteStorage(6, 2),
|
||||
new PaletteStorage(6, 2));
|
||||
new PaletteStorage(15, 2),
|
||||
new PaletteStorage(15, 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -224,8 +224,9 @@ public class PaletteStorage implements PublicCloneable<PaletteStorage> {
|
||||
*
|
||||
* @param newBitsPerEntry the new bits per entry count
|
||||
*/
|
||||
private synchronized void resize(int newBitsPerEntry) {
|
||||
private void resize(int newBitsPerEntry) {
|
||||
newBitsPerEntry = fixBitsPerEntry(newBitsPerEntry);
|
||||
|
||||
PaletteStorage paletteStorageCache = new PaletteStorage(newBitsPerEntry, bitsIncrement);
|
||||
paletteStorageCache.paletteBlockMaps = paletteBlockMaps;
|
||||
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.hasPalette = paletteStorageCache.hasPalette;
|
||||
|
||||
this.sectionBlocks = paletteStorageCache.sectionBlocks;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user