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 136a6ad..af771db 100644 --- a/src/main/java/me/chayapak1/chomens_bot/util/ComponentUtilities.java +++ b/src/main/java/me/chayapak1/chomens_bot/util/ComponentUtilities.java @@ -280,6 +280,8 @@ public class ComponentUtilities { int i = 0; while (matcher.find()) { + if (i > 300) break; + if (matcher.group().equals("%%")) { matcher.appendReplacement(sb, "%"); } else {