Skip to content

Commit

Permalink
fix potion lores
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Oct 18, 2024
1 parent a3a518b commit 7d446b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
val langVersion: Int = 17

group = "com.dre.brewery"
version = "3.3.1-SNAPSHOT"
version = "3.3.3"

repositories {
mavenCentral()
Expand All @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/dre/brewery/lore/BrewLore.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<>();
}
Expand All @@ -44,7 +44,7 @@ public PotionMeta write() {
if (lineAddedOrRem) {
updateSpacer();
}
meta.setLore(lore.stream().map(it -> BUtil.color("&9" + it)).toList());

This comment has been minimized.

Copy link
@szarkans

szarkans Nov 2, 2024

Collaborator

color parsing.........

meta.setLore(lore);
return meta;
}

Expand Down

0 comments on commit 7d446b6

Please sign in to comment.