You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When heterogeneous SNBT lists are deserialized into NBT, non-compound entries (or wrapper compound entries? The logic of wrapIfNeeded() makes it seem like you could have double wrapped things if I'm not mistaken) are transformed into a wrapper compound. e.g. ['a', {'b': 3}] is stored as [{'': 'a'}, {'b': 3}].
Annoyingly, this transformation is not undone when NBT is serialized, so users could see those wrapper compounds in /data command output. We need to somehow support usage of wrapper compounds in commands.
The text was updated successfully, but these errors were encountered:
When heterogeneous SNBT lists are deserialized into NBT, non-compound entries (or wrapper compound entries? The logic of
wrapIfNeeded()
makes it seem like you could have double wrapped things if I'm not mistaken) are transformed into a wrapper compound. e.g.['a', {'b': 3}]
is stored as[{'': 'a'}, {'b': 3}]
.net/minecraft/nbt/NbtOps
Annoyingly, this transformation is not undone when NBT is serialized, so users could see those wrapper compounds in
/data
command output. We need to somehow support usage of wrapper compounds in commands.The text was updated successfully, but these errors were encountered: