Remove unnecessary equals method on abstract ItemData

This commit is contained in:
md678685 2018-08-27 21:19:36 +01:00
parent d74f19970b
commit cdc5f75fcb

View File

@ -215,19 +215,6 @@ public abstract class ItemDbProvider implements Provider {
return nbt;
}
@Override
public boolean equals(Object o) {
if (o == null) {
return false;
}
if (!(o instanceof ItemData)) {
return false;
}
ItemData pairo = (ItemData) o;
// TODO: generalise comparison
return this.material == pairo.getMaterial() && this.itemData == pairo.getItemData() && this.nbt.equals(pairo.getNbt());
}
public PotionData getPotionData() {
return this.potionData;
}