mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-23 07:41:32 +01:00
Remove unnecessary equals method on abstract ItemData
This commit is contained in:
parent
d74f19970b
commit
cdc5f75fcb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user