Set default palette size to 8 for DynamicChunk

This commit is contained in:
themode 2021-03-16 04:34:00 +01:00
parent bda4658cba
commit 19a84bcddd
2 changed files with 2 additions and 3 deletions

View File

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

View File

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