mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<groupId>com.dre</groupId>
|
<groupId>com.dre</groupId>
|
||||||
<artifactId>brewery</artifactId>
|
<artifactId>brewery</artifactId>
|
||||||
<version>1.5</version>
|
<version>1.5.01</version>
|
||||||
<name>Brewery</name>
|
<name>Brewery</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -625,7 +625,7 @@ public class Brew {
|
|||||||
|
|
||||||
// True if the PotionMeta has colored Lore
|
// True if the PotionMeta has colored Lore
|
||||||
public static Boolean hasColorLore(PotionMeta meta) {
|
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
|
// gets the Color that represents a quality in Lore
|
||||||
|
|||||||
Reference in New Issue
Block a user