aboutsummaryrefslogtreecommitdiffhomepage
path: root/paper-server/patches/unapplied/net/minecraft/world/item/HoneycombItem.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'paper-server/patches/unapplied/net/minecraft/world/item/HoneycombItem.java.patch')
-rw-r--r--paper-server/patches/unapplied/net/minecraft/world/item/HoneycombItem.java.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/paper-server/patches/unapplied/net/minecraft/world/item/HoneycombItem.java.patch b/paper-server/patches/unapplied/net/minecraft/world/item/HoneycombItem.java.patch
new file mode 100644
index 0000000000..02d0f745ad
--- /dev/null
+++ b/paper-server/patches/unapplied/net/minecraft/world/item/HoneycombItem.java.patch
@@ -0,0 +1,17 @@
+--- 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);
+ }