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