From 1d361c2f487d1a9c446cef5957c9e3df8fe1568b Mon Sep 17 00:00:00 2001 From: feildmaster Date: Tue, 15 May 2012 22:24:27 -0500 Subject: [PATCH] Fix block place protection using a larger radius. Fixes BUKKIT-1617 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 75fdd3f65a..a0c4715d0a 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -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 callEvent(T event) {