diff --git a/build.gradle.kts b/build.gradle.kts index 50d474b3..b1209da3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { val langVersion: Int = 17 group = "com.dre.brewery" -version = "3.3.1-SNAPSHOT" +version = "3.3.3" repositories { mavenCentral() @@ -28,7 +28,6 @@ repositories { maven("https://repo.oraxen.com/releases") // Oraxen } -// TODO: Figure out exclusions because this is a mess. dependencies { compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT") { exclude("com.google.code.gson", "gson") diff --git a/src/main/java/com/dre/brewery/lore/BrewLore.java b/src/main/java/com/dre/brewery/lore/BrewLore.java index e623591b..0f15da3b 100644 --- a/src/main/java/com/dre/brewery/lore/BrewLore.java +++ b/src/main/java/com/dre/brewery/lore/BrewLore.java @@ -30,7 +30,7 @@ public BrewLore(Brew brew, PotionMeta meta) { this.brew = brew; this.meta = meta; if (meta.hasLore()) { - lore = new ArrayList<>(meta.getLore()); // not null + lore = meta.getLore(); } else { lore = new ArrayList<>(); } @@ -44,7 +44,7 @@ public PotionMeta write() { if (lineAddedOrRem) { updateSpacer(); } - meta.setLore(lore.stream().map(it -> BUtil.color("&9" + it)).toList()); + meta.setLore(lore); return meta; }