Fix block place protection using a larger radius. Fixes BUKKIT-1617

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
CraftBukkit/Spigot 2012-05-15 22:24:27 -05:00
parent 8afa2be81a
commit e6ad96fd25

View file

@ -73,7 +73,7 @@ public class CraftEventFactory {
ChunkCoordinates chunkcoordinates = worldServer.getSpawn();
int distanceFromSpawn = (int) 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) {