diff --git a/build-number.txt b/build-number.txt index 0bfd2262..20888455 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -1386 \ No newline at end of file +1403 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/util/ComponentUtilities.java b/src/main/java/me/chayapak1/chomens_bot/util/ComponentUtilities.java index a4434fdc..8dd5ec3d 100644 --- a/src/main/java/me/chayapak1/chomens_bot/util/ComponentUtilities.java +++ b/src/main/java/me/chayapak1/chomens_bot/util/ComponentUtilities.java @@ -237,7 +237,7 @@ public class ComponentUtilities { final String result = lastStyle + color + style + originalResult + - resetCode; + (lastStyle.isEmpty() ? resetCode : ""); lastStyle = color + style; @@ -307,7 +307,7 @@ public class ComponentUtilities { .get(idx) .asComponent(), type - ) + color + style // IMPORTANT!!!! + ) + lastStyle + color + style // IMPORTANT!!!! ) ); } else {