Mojira Archive
MC-98224

JSON signs with scoreboard objectives erase their block data upon chunk load

Basically the title. If a JSON sign has a scoreboard objective tag on it, all of its block data will be erased upon world load.

Steps to reproduce:

1. Create a new world
2. run the following commands:

/scoreboard objectives add hi dummy
/scoreboard players set @p hi 100

3. place a sign down
4. change the block data of the sign with the following command :

/blockdata x y z {Text1:"[\"\",{\"text\":\"hi\"}]",Text2:"[\"\",{\"score\":{\"name\":\"@p\",\"objective\":\"hi\"}}]"}

5. log out of the world
6. log back in

The sign's block data should be gone now.

Code analysis: https://bugs.mojang.com/browse/MC-98224?focusedCommentId=293008&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-293008