diff --git a/src/main/java/org/broken/lib/rbg/TextTranslator.java b/src/main/java/org/broken/lib/rbg/TextTranslator.java index 0cfce94..a119d3e 100644 --- a/src/main/java/org/broken/lib/rbg/TextTranslator.java +++ b/src/main/java/org/broken/lib/rbg/TextTranslator.java @@ -729,12 +729,8 @@ public static int getNextColor(String subMessage) { public static int getEndOfColor(String subMessage) { int nextGrad = subMessage.indexOf(">"); int vanillaColor = checkIfContainsColor(subMessage); - if (nextGrad < 0) - nextGrad = 0; - if (vanillaColor < 0) - vanillaColor = 0; - - return Math.min(nextGrad, vanillaColor); + + return Math.max(nextGrad, vanillaColor); } public static String getStringStriped(String message, int startIndex, int endIndex) {