Fix resizing cuboids to 1 block high. Fixes #264

This commit is contained in:
bloodshot 2020-11-13 17:56:49 -05:00
parent afd3d4098e
commit 771d6eb7e5
2 changed files with 2 additions and 2 deletions

View File

@ -1288,7 +1288,7 @@ public class GDClaim implements Claim {
final Player player = user != null ? user.getOnlinePlayer() : null;
if (this.cuboid) {
// make sure resize doesn't cross paths
if (minx >= maxx || miny >= maxy || minz >= maxz) {
if (minx >= maxx || miny > maxy || minz >= maxz) {
return new GDClaimResult(this, ClaimResultType.OVERLAPPING_CLAIM);
}
}

View File

@ -1305,7 +1305,7 @@ public class GDClaim implements Claim {
final Player player = user != null ? user.getOnlinePlayer() : null;
if (this.cuboid) {
// make sure resize doesn't cross paths
if (minx >= maxx || miny >= maxy || minz >= maxz) {
if (minx >= maxx || miny > maxy || minz >= maxz) {
return new GDClaimResult(this, ClaimResultType.OVERLAPPING_CLAIM);
}
}