fix: hopefully patch chinese chat crash (idk)

refactor: rename `addPlural`
This commit is contained in:
ChomeNS
2025-04-08 19:35:38 +07:00
parent dd2b8ce26d
commit 80aec4fca8
5 changed files with 17 additions and 15 deletions

View File

@@ -296,7 +296,7 @@ public class ChatPlugin extends Bot.Listener {
if (!bot.loggedIn) return;
bot.session.send(new ServerboundChatPacket(
message,
StringUtilities.truncateToFitUtf8ByteLength(message, 256),
Instant.now().toEpochMilli(),
0L,
null,