Plethora Peripherals

Plethora Peripherals

3M Downloads

Sign text operations are not roundtrip-able

MineRobber9000 opened this issue ยท 0 comments

commented

Title. Basically, you can't sign.setSignText(table.unpack(sign.getSignText())) without losing formatting codes.

Steps to reproduce:

  1. Go into the Lua prompt on a CC computer.
  2. Wrap a sign as sign.
  3. Use sign.setSignText to set some text on the sign using formatting (i.e; sign.setSignText("\u{00a7}4This text is red!"))
  4. 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.