DarkKronicle / AdvancedChatFilters

Advanced ways to filter and process Minecraft text
Mozilla Public License 2.0
8 stars 9 forks source link

[BUG] Pressing button "Test Input" with color formatting leads to game crash. #13

Open ghost opened 2 years ago

ghost commented 2 years ago

Describe the bug If test input contains color formatting, it leads to game crash.

Minecraft Info Minecraft information:

To Reproduce Steps to reproduce the behavior:

  1. Go to singleplayer or multiplayer world;
  2. Open a chat;
  3. Open AdvancedChatCore settings through a button;
  4. Import filter from Additional context;
  5. In "Test Input" write any matching string with color formatting;
  6. Press button "Test Input";
  7. See error.

Expected behavior Text input should be processed with color.

Video

https://user-images.githubusercontent.com/93866416/170560697-d5535e3c-bf52-4d0e-b3e5-2eb44b74edf6.mp4

Additional context Here's exported filter, that I used.

{"name":"clock","active":false,"stripColors":true,"findString":"(.*) \u003e (.*)","findType":"regex","replaceType":"fullmessage","replaceTo":"$1 \u003e $2","replaceTextColor":false,"textColor":"#FFFFFFFF","replaceBackgroundColor":false,"backgroundColor":"#FFFFFFFF","processors":{"forward":{"active":true},"actionbar":{"active":false},"sound":{"active":false,"notifySound":"none","soundPitch":1.0,"soundVolume":1.0},"narrator":{"active":false,"message":"$1"},"konstruct":{"active":false,"nodeData":""}},"order":0}

And here's my crash report.

crash-2022-05-26_23.56.51-client.txt

DarkKronicle commented 2 years ago

Thanks for all the information! A bit confused why this is happening... I should be able to fix it before the next release.