mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 10:41:27 +01:00
Made PlayerInteractEvent fire for digging within spawn for informational purposes only. Fixes BUKKIT-1086
This commit is contained in:
parent
06b814fd7e
commit
b37872c1a6
@ -618,6 +618,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
if (packet14blockdig.e == 0) {
|
if (packet14blockdig.e == 0) {
|
||||||
// CraftBukkit
|
// CraftBukkit
|
||||||
if (i1 < this.server.getSpawnRadius() && !flag) {
|
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));
|
this.player.netServerHandler.sendPacket(new Packet53BlockChange(i, j, k, worldserver));
|
||||||
} else {
|
} else {
|
||||||
this.player.itemInWorldManager.dig(i, j, k, packet14blockdig.face);
|
this.player.itemInWorldManager.dig(i, j, k, packet14blockdig.face);
|
||||||
|
Loading…
Reference in New Issue
Block a user