Fix resizing cuboids to 1 block high. Fixes #264
This commit is contained in:
parent
afd3d4098e
commit
771d6eb7e5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue