Skip to content

Commit

Permalink
add brewery's default blue prefix and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsinco committed Nov 3, 2024
1 parent 398371e commit f319885
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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.3"
version = "3.3.4"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dre/brewery/lore/BrewLore.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public PotionMeta write() {
if (lineAddedOrRem) {
updateSpacer();
}
meta.setLore(BUtil.color(lore));
meta.setLore(BUtil.color(lore, "&9"));
return meta;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dre/brewery/lore/LoreSaveStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void flush() throws IOException {
lore.add("");
}
lore.add(line, loreLineBuilder.toString());
meta.setLore(BUtil.color(lore));
meta.setLore(BUtil.color(lore, "&9"));
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/dre/brewery/utility/BUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public static boolean isChunkLoaded(Block block) {
return block.getWorld().isChunkLoaded(block.getX() >> 4, block.getZ() >> 4);
}

public static List<String> color(List<String> list) {
return list.stream().map(BUtil::color).toList();
public static List<String> color(List<String> list, String prefix) {
return list.stream().map(it -> color(prefix + it)).toList();
}

/**
Expand Down

0 comments on commit f319885

Please sign in to comment.