Merge pull request #8 from DevotedMC/hotfix

Hotfix
This commit is contained in:
Daniel Boston 2017-06-10 17:21:09 -04:00 committed by GitHub
commit 49cab54a8f
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<groupId>com.dre</groupId>
<artifactId>brewery</artifactId>
<version>1.5</version>
<version>1.5.01</version>
<name>Brewery</name>
<properties>

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() > 1 && !meta.getLore().get(1).startsWith(P.p.color("&7")));
}
// gets the Color that represents a quality in Lore