From fbe54b05f40f7e27e5d209b746af22a4d850f078 Mon Sep 17 00:00:00 2001 From: Zenexer Date: Thu, 10 Feb 2011 11:15:03 +0800 Subject: Added spawn-protection property to server.properties --- src/main/java/net/minecraft/server/NetServerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/net/minecraft/server/NetServerHandler.java') 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 -- cgit v1.2.3