Sign text operations are not roundtrip-able
MineRobber9000 opened this issue ยท 0 comments
Title. Basically, you can't sign.setSignText(table.unpack(sign.getSignText()))
without losing formatting codes.
Steps to reproduce:
- Go into the Lua prompt on a CC computer.
- Wrap a sign as
sign
. - Use
sign.setSignText
to set some text on the sign using formatting (i.e;sign.setSignText("\u{00a7}4This text is red!")
) - Execute
sign.setSignText(table.unpack(sign.getSignText()))
Expected result: Formatting stays intact.
What actually happens: Formatting codes are lost, and diamond ? markers become a normal question mark.