mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-02 11:11:58 +01:00
Slightly simplify FlatItemDb
This commit is contained in:
parent
d95b632884
commit
77ffb6a3d5
@ -162,7 +162,7 @@ public class FlatItemDb extends AbstractItemDb {
|
||||
Material type = item.getType();
|
||||
PotionData potion = null;
|
||||
|
||||
if ((type.name().contains("POTION") || type.name().equals("TIPPED_ARROW")) && item.getItemMeta() instanceof PotionMeta) {
|
||||
if (MaterialUtil.isPotion(type) && item.getItemMeta() instanceof PotionMeta) {
|
||||
potion = ((PotionMeta) item.getItemMeta()).getBasePotionData();
|
||||
}
|
||||
|
||||
@ -195,7 +195,6 @@ public class FlatItemDb extends AbstractItemDb {
|
||||
}
|
||||
|
||||
public static class ItemData {
|
||||
private String itemName;
|
||||
private Material material;
|
||||
private PotionData potionData;
|
||||
|
||||
@ -221,10 +220,6 @@ public class FlatItemDb extends AbstractItemDb {
|
||||
return this.material == that.getMaterial() && potionDataEquals(that);
|
||||
}
|
||||
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
|
||||
public Material getMaterial() {
|
||||
return material;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user