From dd1b6d76c85883bb2f1d8b3676c70d7d644d06be Mon Sep 17 00:00:00 2001 From: ProSavage Date: Sat, 17 Nov 2018 13:00:14 -0600 Subject: [PATCH] Worldborder check fixed. --- src/main/java/com/massivecraft/factions/FLocation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/FLocation.java b/src/main/java/com/massivecraft/factions/FLocation.java index 00a79b76..15bb0712 100644 --- a/src/main/java/com/massivecraft/factions/FLocation.java +++ b/src/main/java/com/massivecraft/factions/FLocation.java @@ -199,9 +199,9 @@ public class FLocation implements Serializable { Chunk chunk = border.getCenter().getChunk(); int lim = FLocation.chunkToRegion((int) border.getSize()) - buffer; - int diffX = Math.abs(chunk.getX() - x); - int diffZ = Math.abs(chunk.getZ() - z); - return diffX > lim || diffZ > lim; + int diffX = chunk.getX() - x; + int diffZ = chunk.getZ() - z; + return diffX > lim || diffZ > lim || -diffX > lim - 1 || -diffZ > lim - 1; } //----------------------------------------------//