mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-27 02:21:38 +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) {
|
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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user