Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-25 15:50:10 +01:00
Fix item meta not being saved when including block state data (#4298)
Dieser Commit ist enthalten in:
Ursprung
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()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren