mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Convert Potions for 1.9
Convert existing brews to show correct color and lore
This commit is contained in:
@@ -83,8 +83,7 @@ public class Brew {
|
||||
public static Brew get(ItemStack item) {
|
||||
if (item.getType() == Material.POTION) {
|
||||
if (item.hasItemMeta()) {
|
||||
PotionMeta potionMeta = (PotionMeta) item.getItemMeta();
|
||||
return get(potionMeta);
|
||||
return get((PotionMeta) item.getItemMeta());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@@ -274,6 +273,18 @@ public class Brew {
|
||||
unlabeled = true;
|
||||
}
|
||||
|
||||
public int getDistillRuns() {
|
||||
return distillRuns;
|
||||
}
|
||||
|
||||
public float getAgeTime() {
|
||||
return ageTime;
|
||||
}
|
||||
|
||||
public BRecipe getCurrentRecipe() {
|
||||
return currentRecipe;
|
||||
}
|
||||
|
||||
public boolean isPersistent() {
|
||||
return persistent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user