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

View File

@@ -5,7 +5,7 @@
Player player = context.getPlayer();
ItemStack itemInHand = context.getItemInHand();
+ // 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()) {
+ player.containerMenu.sendAllDataToRemote();
+ }