Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

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

@ghost

Description

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

Minecraft Info
Minecraft information:

  • Minecraft version: 1.18.2;
  • AdvancedChatCore 1.5.0;
  • AdvancedChatFilters 1.2.3;
  • Fabric API 0.48.0;
  • Malilib Fabric 0.12.1;
  • ModMenu 3.1.0.

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

TestInputCrash.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions