Archiviert
13
0

Made PlayerInteractEvent fire for digging within spawn for informational purposes only. Fixes BUKKIT-1086

Dieser Commit ist enthalten in:
EvilSeph 2012-03-13 15:35:20 -04:00
Ursprung 06b814fd7e
Commit b37872c1a6

Datei anzeigen

@ -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);