Fix reversed conditional (#1138)

This commit is contained in:
Adam 2020-12-09 11:02:46 -05:00 committed by GitHub
parent f01798fb46
commit 03ab872f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,8 +731,13 @@ public class Claim
if (!Objects.equals(location.getWorld(), this.lesserBoundaryCorner.getWorld())) return false;
int x = (int) location.getX();
int y = (int) (ignoreHeight ? getLesserBoundaryCorner().getY() : location.getY());
int z = (int) location.getZ();
int y;
if (ignoreHeight) {
y = location.getBlockY();
} else {
y = getLesserBoundaryCorner().getBlockY();
}
//main check
if (!new BoundingBox(this).contains(x, y, z)) return false;