mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
18 lines
848 B
Diff
18 lines
848 B
Diff
|
--- a/net/minecraft/world/item/HoneycombItem.java
|
||
|
+++ b/net/minecraft/world/item/HoneycombItem.java
|
||
|
@@ -74,6 +74,14 @@
|
||
|
return getWaxed(blockState).map(state -> {
|
||
|
Player player = context.getPlayer();
|
||
|
ItemStack itemStack = context.getItemInHand();
|
||
|
+ // Paper start - EntityChangeBlockEvent
|
||
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, blockPos, state)) {
|
||
|
+ if (!player.isCreative()) {
|
||
|
+ player.containerMenu.sendAllDataToRemote();
|
||
|
+ }
|
||
|
+ return InteractionResult.PASS;
|
||
|
+ }
|
||
|
+ // Paper end
|
||
|
if (player instanceof ServerPlayer serverPlayer) {
|
||
|
CriteriaTriggers.ITEM_USED_ON_BLOCK.trigger(serverPlayer, blockPos, itemStack);
|
||
|
}
|