13
0
geforkt von Mirrors/Paper

Fix desync of honeycomb when the event is canceled (#8713)

Dieser Commit ist enthalten in:
Lulu13022002 2023-02-11 18:14:03 +01:00
Ursprung 723559e9f0
Commit f3de04a9fb

Datei anzeigen

@ -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