mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Slightly simplify FlatItemDb
This commit is contained in:
parent
d95b632884
commit
77ffb6a3d5
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue