SPIGOT-8031: ItemMeta#setBlocksAttacks always sets the BlocksAttacksComponent to null
This commit is contained in:
parent
20401f1c9f
commit
cc864ea9be
@ -1625,7 +1625,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBlocksAttacks(BlocksAttacksComponent blocksAttacks) {
|
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
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user