mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Make isCurrentAir final.
This commit is contained in:
parent
67494255b5
commit
c9d0dc62f6
@ -96,7 +96,7 @@ public class Section implements PublicCloneable<Section> {
|
||||
block ^= clear << bitIndex;
|
||||
block |= (long) blockId << bitIndex;
|
||||
|
||||
boolean isCurrentAir = Block.fromStateId(getBlockAt(x, y, z)).isAir();
|
||||
final boolean isCurrentAir = Block.fromStateId(getBlockAt(x, y, z)).isAir();
|
||||
if (!isCurrentAir && isAir) { // The old block isn't air & the new block is.
|
||||
this.blockCount--;
|
||||
} else if (isCurrentAir && !isAir) { // The old block is air & the new block isn't.
|
||||
|
Loading…
Reference in New Issue
Block a user