diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-13 15:35:20 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-13 19:15:20 -0400 |
commit | b37872c1a6dda6698339300797b0d8f82046457e (patch) | |
tree | fa71a3592aaa735f1ac476d30cc9f3993228ad09 /src/main | |
parent | 06b814fd7ee1a147dc82870ccade90c4ac621059 (diff) | |
download | craftbukkit-b37872c1a6dda6698339300797b0d8f82046457e.tar craftbukkit-b37872c1a6dda6698339300797b0d8f82046457e.tar.gz craftbukkit-b37872c1a6dda6698339300797b0d8f82046457e.tar.lz craftbukkit-b37872c1a6dda6698339300797b0d8f82046457e.tar.xz craftbukkit-b37872c1a6dda6698339300797b0d8f82046457e.zip |
Made PlayerInteractEvent fire for digging within spawn for informational purposes only. Fixes BUKKIT-1086
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 356e0008..18293eb7 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -618,6 +618,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { if (packet14blockdig.e == 0) { // CraftBukkit if (i1 < this.server.getSpawnRadius() && !flag) { + CraftEventFactory.callPlayerInteractEvent(this.player, Action.LEFT_CLICK_BLOCK, i, j, k, l, this.player.inventory.getItemInHand()); this.player.netServerHandler.sendPacket(new Packet53BlockChange(i, j, k, worldserver)); } else { this.player.itemInWorldManager.dig(i, j, k, packet14blockdig.face); |