From 037410d40552e1d94a6d99bf58748b1ac9541863 Mon Sep 17 00:00:00 2001 From: booky10 <53302036+booky10@users.noreply.github.com> Date: Fri, 6 Dec 2024 18:53:53 +0100 Subject: [PATCH] Fix item meta not being saved when including block state data (#4298) --- .../viaversion/bukkit/providers/BukkitPickItemProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java b/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java index 3d31ea0bd..d1dd33572 100644 --- a/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java +++ b/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java @@ -79,6 +79,7 @@ public final class BukkitPickItemProvider extends PickItemProvider { final ItemStack item = new ItemStack(block.getBlockData().getPlacementMaterial(), 1); if (includeData && item.getItemMeta() instanceof final BlockStateMeta blockStateMeta) { blockStateMeta.setBlockState(block.getState()); + item.setItemMeta(blockStateMeta); } return item; } else if (block.getType().isItem()) {