mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-27 18:41:22 +01:00
Temporarily remove palette optimization
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
d622eab048
commit
fbd462a6ee
@ -125,14 +125,8 @@ final class AdaptivePalette implements Palette {
|
|||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
currentPalette = new FilledPalette(dimension, 0);
|
currentPalette = new FilledPalette(dimension, 0);
|
||||||
this.palette = currentPalette;
|
this.palette = currentPalette;
|
||||||
} else if (count == maxSize()) {
|
|
||||||
// Palette is full
|
|
||||||
final var values = flexiblePalette.paletteToValueList;
|
|
||||||
if (values.size() > 0) {
|
|
||||||
currentPalette = new FilledPalette(dimension, values.getInt(1));
|
|
||||||
this.palette = currentPalette;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// TODO optimize the case where the palette is filled with a single value
|
||||||
}
|
}
|
||||||
return currentPalette;
|
return currentPalette;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user