Make isCurrentAir final.

This commit is contained in:
Cp1987 2021-05-18 15:12:48 +02:00 committed by GitHub
parent 67494255b5
commit c9d0dc62f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.