mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Fix desync of honeycomb when the event is canceled (#8713)
This commit is contained in:
@@ -120,6 +120,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
ItemStack itemStack = context.getItemInHand();
|
ItemStack itemStack = context.getItemInHand();
|
||||||
+ // Paper start - EntityChangeBlockEvent
|
+ // Paper start - EntityChangeBlockEvent
|
||||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, blockPos, state).isCancelled()) {
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, blockPos, state).isCancelled()) {
|
||||||
|
+ if (!player.isCreative()) {
|
||||||
|
+ player.containerMenu.sendAllDataToRemote();
|
||||||
|
+ }
|
||||||
+ return InteractionResult.PASS;
|
+ return InteractionResult.PASS;
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
Reference in New Issue
Block a user