mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
Expose #hasColor to leather armor
This commit is contained in:
parent
ae4acc6aeb
commit
d5b93a0167
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue