mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-22 00:17:37 +01:00
Fix item meta not being saved when including block state data (#4298)
This commit is contained in:
parent
c9d5632143
commit
037410d405
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user