hot-fix for array bounds error

This commit is contained in:
ProgrammerDan
2016-12-14 15:50:49 -05:00
parent 1a9e9e3a13
commit 838621715c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -625,7 +625,7 @@ public class Brew {
// True if the PotionMeta has colored Lore
public static Boolean hasColorLore(PotionMeta meta) {
return meta.hasLore() && !meta.getLore().get(1).startsWith(P.p.color("&7"));
return meta.hasLore() && (meta.getLore().size() > 0 && !meta.getLore().get(1).startsWith(P.p.color("&7")));
}
// gets the Color that represents a quality in Lore