Fix legacy nbt io

Fixes #1874
This commit is contained in:
KennyTV 2020-07-02 16:35:33 +02:00
parent 5ce1e850c8
commit a613edcb42
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -192,7 +192,7 @@ import java.util.stream.IntStream;
}
final StringBuilder builder = new StringBuilder();
while (Tokens.id(this.buffer.peek())) {
while (this.buffer.peek() != ':') { // DO NOT CHECK FOR CHARACTER VALIDITY; LEGACY NBT ALLOWS ANY CHARACTER, EVEN WHEN UNQUOTED
builder.append(this.buffer.take());
}
return builder.toString();