diff options
author | Zenexer <paul@vimae.com> | 2011-02-10 12:02:37 +0800 |
---|---|---|
committer | tahg <tahgtahv@gmail.com> | 2011-02-10 12:16:31 +0800 |
commit | 96794e15db3e91dcf8147ce0824e8ab99d7422d4 (patch) | |
tree | 586d9fc4c8218bc37b63473998a022b45d6d10ed /src/main/java/net/minecraft/server/ItemBlock.java | |
parent | 1da852265a2b74d201af4495d8b4b6a59bae234b (diff) | |
download | craftbukkit-96794e15db3e91dcf8147ce0824e8ab99d7422d4.tar craftbukkit-96794e15db3e91dcf8147ce0824e8ab99d7422d4.tar.gz craftbukkit-96794e15db3e91dcf8147ce0824e8ab99d7422d4.tar.lz craftbukkit-96794e15db3e91dcf8147ce0824e8ab99d7422d4.tar.xz craftbukkit-96794e15db3e91dcf8147ce0824e8ab99d7422d4.zip |
Added spawn-protection property to server.properties
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemBlock.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemBlock.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ItemBlock.java b/src/main/java/net/minecraft/server/ItemBlock.java index c2a9a070..d3a886e3 100644 --- a/src/main/java/net/minecraft/server/ItemBlock.java +++ b/src/main/java/net/minecraft/server/ItemBlock.java @@ -98,9 +98,7 @@ public class ItemBlock extends Item { int distanceFromSpawn = (int) Math.max(Math.abs(i - world.spawnX), Math.abs(k - world.spawnZ)); - // CraftBukkit hardcoded Spawn distance for now - // TODO make spawn size configurable - boolean canBuild = distanceFromSpawn > ((WorldServer) world).D.spawnProtection || thePlayer.isOp(); + boolean canBuild = distanceFromSpawn > ((WorldServer) world).D.spawnProtection || thePlayer.isOp(); // CraftBukkit Configurable spawn protection start BlockPlaceEvent event = new BlockPlaceEvent(eventType, placedBlock, replacedBlockState, blockClicked, itemInHand, thePlayer, canBuild); server.getPluginManager().callEvent(event); |