summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/NetServerHandler.java
diff options
context:
space:
mode:
authorZenexer <paul@vimae.com>2011-02-10 11:15:03 +0800
committertahg <tahgtahv@gmail.com>2011-02-10 12:16:30 +0800
commitfbe54b05f40f7e27e5d209b746af22a4d850f078 (patch)
treee38e9ccf0a7cbc4253ca2e477f2d92f307549a65 /src/main/java/net/minecraft/server/NetServerHandler.java
parent814c9d444f430bc1fe4358f8d368847075b358e7 (diff)
downloadcraftbukkit-fbe54b05f40f7e27e5d209b746af22a4d850f078.tar
craftbukkit-fbe54b05f40f7e27e5d209b746af22a4d850f078.tar.gz
craftbukkit-fbe54b05f40f7e27e5d209b746af22a4d850f078.tar.lz
craftbukkit-fbe54b05f40f7e27e5d209b746af22a4d850f078.tar.xz
craftbukkit-fbe54b05f40f7e27e5d209b746af22a4d850f078.zip
Added spawn-protection property to server.properties
Diffstat (limited to 'src/main/java/net/minecraft/server/NetServerHandler.java')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 3d54810f..dc873315 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -325,7 +325,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// CraftBukkit end
if (packet14blockdig.e == 0) {
- if (j1 > 16 || flag) {
+ if (j1 > this.d.spawnProtection || flag) {
// CraftBukkit start
if(blockId > 0) {
BlockDamageEvent event;
@@ -354,7 +354,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
}
// CraftBukkit end
} else if (packet14blockdig.e == 1) {
- if (j1 > 16 || flag) {
+ if (j1 > this.d.spawnProtection || flag) {
// CraftBukkit start
BlockDamageEvent event;
// If the amount of damage going to the block plus the current amount