mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
improve bit logic
This commit is contained in:
parent
3aeb0690d8
commit
29bbc39a1a
@ -127,8 +127,7 @@ final class PaletteImpl implements Palette, Cloneable {
|
||||
final boolean currentAir = oldBlock == 0;
|
||||
|
||||
final long indexClear = clear << bitIndex;
|
||||
block |= indexClear;
|
||||
block ^= indexClear;
|
||||
block &= ~indexClear;
|
||||
block |= (long) value << bitIndex;
|
||||
|
||||
if (currentAir != placedAir) {
|
||||
|
Loading…
Reference in New Issue
Block a user