70CentsApple / ChatTools

Chat Tools 一个 Minecraft Fabric 辅助模组 | A Fabric client-side Minecraft Mod
GNU General Public License v3.0
13 stars 4 forks source link

Network packet error every time a filtered word matches #51

Closed syshotdev closed 2 months ago

syshotdev commented 2 months ago

Bug description

When a message in chat contains a filtered word (Described in Mod menu -> Chat Tools -> Chat Filter -> Rules) it instantly boots you out of the game and displays "Network Protocol Error". image

Steps to reproduce

  1. Be on linux (I'm pretty sure this is a linux-specific bug, doesn't matter the distrobution I think)
  2. Add all of the required mods (Chat Tools, Fabric API, Cloth Config, Mod Menu for config)
  3. Add a rule in (Mod menu -> Chat Tools -> Chat Filter -> Rules), "cat" for example, enable chat filter
  4. Join a server and type "cat" in chat
  5. Error

Expected behavior

It either removes the message (As in, it looks like the chat has not moved) or it makes the message blank.

Actual behavior

I get kicked with a network protocol error

Relevant logs

https://pastebin.com/ZpRNBz1Z

Minecraft version

1.21

Mod version

2.3.1

Other information

No response

Check list

70CentsApple commented 2 months ago

please try this action build and tell me whether it works.