Skip to content

Commit 3580fa4

Browse files
Use internal block to item conversion for flower pots (#13880)
1 parent 10a73fe commit 3580fa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paper-server/patches/sources/net/minecraft/world/level/block/FlowerPotBlock.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
ItemStack plant = new ItemStack(this.potted);
2626
+ // Paper start - Add PlayerFlowerPotManipulateEvent
2727
+ org.bukkit.block.Block block = org.bukkit.craftbukkit.block.CraftBlock.at(level, pos);
28-
+ org.bukkit.inventory.ItemStack pottedStack = new org.bukkit.inventory.ItemStack(org.bukkit.craftbukkit.block.CraftBlockType.minecraftToBukkit(this.potted));
28+
+ org.bukkit.inventory.ItemStack pottedStack = org.bukkit.craftbukkit.inventory.CraftItemStack.asBukkitCopy(plant);
2929
+
3030
+ io.papermc.paper.event.player.PlayerFlowerPotManipulateEvent event = new io.papermc.paper.event.player.PlayerFlowerPotManipulateEvent((org.bukkit.entity.Player) player.getBukkitEntity(), block, pottedStack, false);
3131
+ if (!event.callEvent()) {

0 commit comments

Comments
 (0)