Expose #hasColor to leather armor

This commit is contained in:
SoSeDiK 2024-05-01 10:58:50 +03:00
parent ae4acc6aeb
commit d5b93a0167
2 changed files with 14 additions and 0 deletions

View file

@ -100,4 +100,11 @@ public class CraftMetaColorableArmor extends CraftMetaArmor implements Colorable
}
return original != hash ? CraftMetaColorableArmor.class.hashCode() ^ hash : hash;
}
// Paper start - Expose #hasColor to leather armor
@Override
public boolean isDyed() {
return hasColor();
}
// Paper end - Expose #hasColor to leather armor
}

View file

@ -156,4 +156,11 @@ class CraftMetaLeatherArmor extends CraftMetaItem implements LeatherArmorMeta {
builder.put(CraftMetaLeatherArmor.COLOR.BUKKIT, meta.getColor());
}
}
// Paper start - Expose #hasColor to leather armor
@Override
public boolean isDyed() {
return hasColor();
}
// Paper end - Expose #hasColor to leather armor
}