mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-24 00:51:34 +01:00
Set default palette size to 8 for DynamicChunk
This commit is contained in:
parent
bda4658cba
commit
19a84bcddd
@ -69,8 +69,8 @@ public class DynamicChunk extends Chunk {
|
||||
|
||||
public DynamicChunk(@Nullable Biome[] biomes, int chunkX, int chunkZ) {
|
||||
this(biomes, chunkX, chunkZ,
|
||||
new PaletteStorage(15, 2),
|
||||
new PaletteStorage(15, 2));
|
||||
new PaletteStorage(8, 2),
|
||||
new PaletteStorage(8, 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -228,7 +228,6 @@ public class PaletteStorage implements PublicCloneable<PaletteStorage> {
|
||||
* @param newBitsPerEntry the new bits per entry count
|
||||
*/
|
||||
private void resize(int newBitsPerEntry) {
|
||||
// FIXME: artifacts when resizing
|
||||
newBitsPerEntry = fixBitsPerEntry(newBitsPerEntry);
|
||||
|
||||
PaletteStorage paletteStorageCache = new PaletteStorage(newBitsPerEntry, bitsIncrement);
|
||||
|
Loading…
Reference in New Issue
Block a user