Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign text operations are not roundtrip-able #62

Open
MineRobber9000 opened this issue Jun 11, 2023 · 0 comments
Open

Sign text operations are not roundtrip-able #62

MineRobber9000 opened this issue Jun 11, 2023 · 0 comments

Comments

@MineRobber9000
Copy link

MineRobber9000 commented Jun 11, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant