From f3de04a9fb95b6f3a1ef5f4c9a33255debc4fd91 Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Sat, 11 Feb 2023 18:14:03 +0100 Subject: [PATCH] Fix desync of honeycomb when the event is canceled (#8713) --- .../server/Fire-EntityChangeBlockEvent-in-more-places.patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patches/server/Fire-EntityChangeBlockEvent-in-more-places.patch b/patches/server/Fire-EntityChangeBlockEvent-in-more-places.patch index 60c7a74433..f04d06569f 100644 --- a/patches/server/Fire-EntityChangeBlockEvent-in-more-places.patch +++ b/patches/server/Fire-EntityChangeBlockEvent-in-more-places.patch @@ -120,6 +120,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 ItemStack itemStack = context.getItemInHand(); + // Paper start - EntityChangeBlockEvent + if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, blockPos, state).isCancelled()) { ++ if (!player.isCreative()) { ++ player.containerMenu.sendAllDataToRemote(); ++ } + return InteractionResult.PASS; + } + // Paper end