fix: ignore overlay messages

This commit is contained in:
ChomeNS
2025-04-27 08:37:11 +07:00
parent 76b7df54e2
commit 7b6f50cfab
2 changed files with 4 additions and 3 deletions

View File

@@ -83,8 +83,9 @@ public class ChatPlugin implements Listener {
final Component component = packet.getContent();
if (
component instanceof final TextComponent t_component &&
t_component.content().length() > 15_000
packet.isOverlay() ||
(component instanceof final TextComponent t_component
&& t_component.content().length() > 15_000)
) return;
if (component instanceof final TranslatableComponent t_component) {