diff options
author | feildmaster <admin@feildmaster.com> | 2012-05-15 22:24:27 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-05-16 18:43:44 -0500 |
commit | 1d361c2f487d1a9c446cef5957c9e3df8fe1568b (patch) | |
tree | 50a913aced3debcd282ad23a00ef930ccf19419a /src/main/java/org | |
parent | 4c8f6f2caaba24cbc3d30aa36200bde81d3e4132 (diff) | |
download | craftbukkit-1d361c2f487d1a9c446cef5957c9e3df8fe1568b.tar craftbukkit-1d361c2f487d1a9c446cef5957c9e3df8fe1568b.tar.gz craftbukkit-1d361c2f487d1a9c446cef5957c9e3df8fe1568b.tar.lz craftbukkit-1d361c2f487d1a9c446cef5957c9e3df8fe1568b.tar.xz craftbukkit-1d361c2f487d1a9c446cef5957c9e3df8fe1568b.zip |
Fix block place protection using a larger radius. Fixes BUKKIT-1617
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 75fdd3f6..a0c4715d 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 extends Event> T callEvent(T event) { |