SPIGOT-7929: Error when setting EquippableComponent

This commit is contained in:
md_5 2024-10-27 07:33:54 +11:00
parent abbf57bac9
commit 3eaf3a13c7
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -1538,7 +1538,7 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
@Override
public void setEquippable(EquippableComponent equippable) {
this.equippable = (equippable == null) ? null : new CraftEquippableComponent((CraftEquippableComponent) this.equippable);
this.equippable = (equippable == null) ? null : new CraftEquippableComponent((CraftEquippableComponent) equippable);
}
@Override