mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 07:31:47 +01:00
Better flow control
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
b3ee3e2345
commit
29a06487ce
@ -267,8 +267,7 @@ final class FlexiblePalette implements SpecializedPalette, Cloneable {
|
|||||||
consumer.accept(x, y, z, 0);
|
consumer.accept(x, y, z, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
} else {
|
||||||
}
|
|
||||||
int bitIndex = 0;
|
int bitIndex = 0;
|
||||||
for (; index < maxIndex; index++) {
|
for (; index < maxIndex; index++) {
|
||||||
final short paletteIndex = (short) (value >> bitIndex & magicMask);
|
final short paletteIndex = (short) (value >> bitIndex & magicMask);
|
||||||
@ -283,6 +282,7 @@ final class FlexiblePalette implements SpecializedPalette, Cloneable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void updateAll(int[] paletteValues) {
|
private void updateAll(int[] paletteValues) {
|
||||||
final int size = maxSize();
|
final int size = maxSize();
|
||||||
|
Loading…
Reference in New Issue
Block a user