Fix off by 1 error for spawn protection. Fixes BUKKIT-4154

This commit is contained in:
Jonatan Noponen 2013-07-31 19:43:10 +03:00 committed by EvilSeph
parent e7539378fa
commit 6d0d33b9d2

View File

@ -86,7 +86,7 @@ public class CraftEventFactory {
ChunkCoordinates chunkcoordinates = worldServer.getSpawn();
int distanceFromSpawn = Math.max(Math.abs(x - chunkcoordinates.x), Math.abs(z - chunkcoordinates.z));
return distanceFromSpawn >= spawnSize;
return distanceFromSpawn > spawnSize;
}
public static <T extends Event> T callEvent(T event) {