Call EntityChangeBlockEvent with correct block when waxing (#12154)

This commit is contained in:
Emilia Kond 2025-02-20 11:46:11 +02:00 committed by GitHub
parent edda0db18b
commit 5e2a3bc0e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@
Player player = context.getPlayer(); Player player = context.getPlayer();
ItemStack itemInHand = context.getItemInHand(); ItemStack itemInHand = context.getItemInHand();
+ // Paper start - EntityChangeBlockEvent + // Paper start - EntityChangeBlockEvent
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, clickedPos, blockState)) { + if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(player, clickedPos, blockState1)) {
+ if (!player.isCreative()) { + if (!player.isCreative()) {
+ player.containerMenu.sendAllDataToRemote(); + player.containerMenu.sendAllDataToRemote();
+ } + }