PrismarineJS / prismarine-chat

A parser for a minecraft chat message
MIT License
34 stars 22 forks source link

Fix `MessageBuilder#resetFormatting` & optimize `MessageBuilder#fromString` #86

Closed ChipmunkMC closed 1 year ago

ChipmunkMC commented 1 year ago

Closes #85

This fixes the resetFormatting method of MessageBuilder not resetting the color correctly (1.16+). Also, while this was not necessary to fix the issue, the fromString static method was rewritten to output smaller components. Formatting no longer leaks into color codes either (which it should not, at least in the way the notchian client handles legacy colors).

ChipmunkMC commented 1 year ago

I realize that this breaks text such as &aa&ll. I will try fixing it later.

rom1504 commented 1 year ago

too old