mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-29 13:25:19 +01:00
Fix resizing cuboids to 1 block high. Fixes #264
This commit is contained in:
parent
afd3d4098e
commit
771d6eb7e5
@ -1288,7 +1288,7 @@ public ClaimResult resize(int x1, int x2, int y1, int y2, int z1, int z2) {
|
||||
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 ClaimResult resize(int x1, int x2, int y1, int y2, int z1, int z2) {
|
||||
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
Block a user