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