Kingdom-of-The-Moon / FiguraRewriteRewrite

rewrite of the rewrite of figura
GNU Lesser General Public License v2.1
1 stars 1 forks source link

"§r" is not working if "Chat Emojis" is enabled. #46

Closed Gakuto1112 closed 1 year ago

Gakuto1112 commented 1 year ago

Description

§r is not working in print() or log() strings if "Chat Emojis" is enabled.

§r is one of text decoration code provided by Minecraft. It means resetting previous text decoration. For more information, please see wiki page.

Example

Please run below code with avatar script. Note: You cannot run this code with /figura run <code>.

print("§cThis text should appear in red.§r This text should appear in white.")

As for expected behavior ("Chat Emojis" is disabled), "This text should appear in red." appears in red and "This text should appear in white." appears in white.

Expected display

However, if "Chat Emoji" is enabled, all of this string appears in red.

All red string

Notes