mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 18:12:09 +01:00
14 lines
720 B
Diff
14 lines
720 B
Diff
--- a/net/minecraft/world/item/AxeItem.java
|
|
+++ b/net/minecraft/world/item/AxeItem.java
|
|
@@ -67,6 +_,11 @@
|
|
return InteractionResult.PASS;
|
|
} else {
|
|
ItemStack itemInHand = context.getItemInHand();
|
|
+ // Paper start - EntityChangeBlockEvent
|
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, clickedPos, optional.get())) {
|
|
+ return InteractionResult.PASS;
|
|
+ }
|
|
+ // Paper end
|
|
if (player instanceof ServerPlayer) {
|
|
CriteriaTriggers.ITEM_USED_ON_BLOCK.trigger((ServerPlayer)player, clickedPos, itemInHand);
|
|
}
|