From cd086ae3b7d20da043e5661ccaf43ce9fd11e1da Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Wed, 19 Nov 2014 18:58:50 -0800 Subject: [PATCH] Fix: Commands don't work with small claims. Actually it depends on where you're standing (two edges have a problem). Smaller claims mean you're more likely to be standing on a bad edge, so smaller claims were more impacted. --- src/me/ryanhamshire/GriefPrevention/Claim.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/Claim.java b/src/me/ryanhamshire/GriefPrevention/Claim.java index e625897..1e0cf4c 100644 --- a/src/me/ryanhamshire/GriefPrevention/Claim.java +++ b/src/me/ryanhamshire/GriefPrevention/Claim.java @@ -649,9 +649,9 @@ public class Claim //main check boolean inClaim = (ignoreHeight || y >= this.lesserBoundaryCorner.getY()) && x >= this.lesserBoundaryCorner.getX() && - x <= this.greaterBoundaryCorner.getX() && + x < this.greaterBoundaryCorner.getX() + 1 && z >= this.lesserBoundaryCorner.getZ() && - z <= this.greaterBoundaryCorner.getZ(); + z < this.greaterBoundaryCorner.getZ() + 1; if(!inClaim) return false;