From 4b2b1e9e1a3c5ba6c7fe11f8d1180b79f4fc4e73 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:34:10 +0700 Subject: [PATCH] fix: cool --- .../java/me/chayapak1/chomens_bot/util/ComponentUtilities.java | 2 ++ 1 file changed, 2 insertions(+) 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 {