From 8dab77185b4639194db27264fbf94bef4a3f5a5f Mon Sep 17 00:00:00 2001 From: Emilia Kond Date: Thu, 20 Feb 2025 11:36:35 +0200 Subject: [PATCH] Call EntityChangeBlockEvent with correct block when waxing At some point along the hardfork process, this patch got messed up and started passing both the "from" and "to" blocks to be the same when using a honeycomb to wax a copper block. This patch restores previous behaviour. --- .../sources/net/minecraft/world/item/HoneycombItem.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/world/item/HoneycombItem.java.patch b/paper-server/patches/sources/net/minecraft/world/item/HoneycombItem.java.patch index 9a4c3ee1c396..b01647c48e84 100644 --- a/paper-server/patches/sources/net/minecraft/world/item/HoneycombItem.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/item/HoneycombItem.java.patch @@ -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(); + }