Expose #hasColor to leather armor
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user