From cc8e1113ae543b30d2f0a1358f6045bed6efb39a Mon Sep 17 00:00:00 2001 From: William Date: Fri, 21 Apr 2023 00:15:18 +0100 Subject: [PATCH] Bump to 2.0.2, fix about menu formatting --- build.gradle | 2 +- src/main/java/net/william278/desertwell/about/AboutMenu.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index a7c1af1..f483246 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group 'net.william278' -version '2.0' +version '2.0.2' defaultTasks 'licenseFormat', 'build' repositories { diff --git a/src/main/java/net/william278/desertwell/about/AboutMenu.java b/src/main/java/net/william278/desertwell/about/AboutMenu.java index cc049ab..edf085d 100644 --- a/src/main/java/net/william278/desertwell/about/AboutMenu.java +++ b/src/main/java/net/william278/desertwell/about/AboutMenu.java @@ -90,7 +90,7 @@ public class AboutMenu { // Add buttons if (!buttons.isEmpty()) { - builder.append(Component.newline()) + builder.append(Component.newline()).append(Component.newline()) .append(Component.text("Links: ").color(secondaryColor)); buttons.stream().map(Link::toComponent).forEach(link -> builder .append(link) @@ -272,7 +272,7 @@ public class AboutMenu { @NotNull public Component toComponent() { - return Component.text((icon == null ? "" : icon) + " " + text, color) + return Component.text("[" + (icon == null ? "" : icon) + " " + text + "]", color) .clickEvent(ClickEvent.openUrl(url)); }