mojira.dev
MC-132291

Sign Data growing on "data merge" or "ctrl + pick block"

Doing the command "data merge" or "ctrl + pick block" creates extra text in the signs data.

Example fixing a typo on a sign:

276, 70, 237 has the following block data: {x: 276, Text4: "{\"text\":\"\"}", y: 70, Text3: "{\"text\":\"\"}", z: 237, Text2: "{\"text\":\"\"}", id: "minecraft:sign", Text1: "{\"text\":\"A cool siogn\"}"}

then running command:

/data merge block 276 70 237 {Text1:"{\"text\":\"A cool sign\"}"}

results in

276, 70, 237 has the following block data: {x: 276, Text4: "{\"extra\":[{\"text\":\"\"}],\"text\":\"\"}", y: 70, Text3: "{\"extra\":[{\"text\":\"\"}],\"text\":\"\"}", z: 237, Text2: "{\"extra\":[{\"text\":\"\"}],\"text\":\"\"}", id: "minecraft:sign", Text1: "{\"extra\":[{\"text\":\"A cool sign\"}],\"text\":\"\"}"}

then to make a copy of the sign to place somewhere else using pick block results in this

276, 70, 237 has the following block data: {x: 276, Text4: "{\"extra\":[{\"text\":\"\"},{\"extra\":[{\"text\":\"\"}],\"text\":\"\"}],\"text\":\"\"}", y: 70, Text3: "{\"extra\":[{\"text\":\"\"},{\"extra\":[{\"text\":\"\"}],\"text\":\"\"}],\"text\":\"\"}", z: 237, Text2: "{\"extra\":[{\"text\":\"\"},{\"extra\":[{\"text\":\"\"}],\"text\":\"\"}],\"text\":\"\"}", id: "minecraft:sign", Text1: "{\"extra\":[{\"text\":\"\"},{\"extra\":[{\"text\":\"A cool sign\"}],\"text\":\"\"}],\"text\":\"\"}"}

And it will keep growing the more you "ctrl + pick block" or "data merge" the sign

Environment

OS: Ubuntu 18.04 

Java: openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

Linked issues

Comments 0

No comments.

migrated

(Unassigned)

Unconfirmed

Minecraft 1.13-pre5

Retrieved