SPIGOT-8031: ItemMeta#setBlocksAttacks always sets the BlocksAttacksComponent to null

This commit is contained in:
md_5 2025-03-31 19:20:43 +11:00
parent 20401f1c9f
commit cc864ea9be
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1625,7 +1625,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
@Override
public void setBlocksAttacks(BlocksAttacksComponent blocksAttacks) {
this.blocksAttacks = (this.blocksAttacks == null) ? null : new CraftBlocksAttacksComponent((CraftBlocksAttacksComponent) this.blocksAttacks);
this.blocksAttacks = (blocksAttacks == null) ? null : new CraftBlocksAttacksComponent((CraftBlocksAttacksComponent) blocksAttacks);
}
@Override