KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
679 stars 104 forks source link

MiniMessage::serialize does not properly serialize escape characters #997

Closed homchom closed 7 months ago

homchom commented 7 months ago

Version: 4.14.0

Given a MiniMessage instance, serialize(Component.text("\\")) == "\\\\", but so does serialize(Component.text("\\\\")). This is a problem because "\\\\" is deserialized to Component.text("\\"), which is not the same text.

I have not tested with double quotes, but a similar issue may exist.

homchom commented 7 months ago

Update: MiniMessage::serialize works fine. I was in a food coma last night and missed something obvious.