From 838621715cf9ae6ff5bb5fe2e5c1db4e31ea4696 Mon Sep 17 00:00:00 2001 From: ProgrammerDan Date: Wed, 14 Dec 2016 15:50:49 -0500 Subject: [PATCH 1/2] hot-fix for array bounds error --- pom.xml | 2 +- src/com/dre/brewery/Brew.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 38637bc..6026300 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.dre brewery - 1.5 + 1.5.01 Brewery diff --git a/src/com/dre/brewery/Brew.java b/src/com/dre/brewery/Brew.java index 3c28035..679fb9a 100644 --- a/src/com/dre/brewery/Brew.java +++ b/src/com/dre/brewery/Brew.java @@ -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 From 75a1734ee8fdc013cb749b4e2d2f74042e678de4 Mon Sep 17 00:00:00 2001 From: ProgrammerDan Date: Sat, 31 Dec 2016 17:42:44 -0500 Subject: [PATCH 2/2] double hotfix fml --- src/com/dre/brewery/Brew.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/dre/brewery/Brew.java b/src/com/dre/brewery/Brew.java index 679fb9a..e8a628e 100644 --- a/src/com/dre/brewery/Brew.java +++ b/src/com/dre/brewery/Brew.java @@ -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().size() > 0 && !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