Better flow control

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-03-28 23:53:53 +02:00
parent b3ee3e2345
commit 29a06487ce

View File

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