mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-16 19:51:35 +01:00
Fix legacy nbt parsing
This commit is contained in:
parent
a0195c59cc
commit
d59749fb03
@ -89,7 +89,12 @@ import java.util.stream.IntStream;
|
||||
public ListTag list() throws StringTagParseException {
|
||||
final ListTag listTag = new ListTag("");
|
||||
this.buffer.expect(Tokens.ARRAY_BEGIN);
|
||||
final boolean prefixedIndex = this.buffer.peek() == '0' && this.buffer.peek(1) == ':';
|
||||
while (this.buffer.hasMore()) {
|
||||
if (prefixedIndex) {
|
||||
this.buffer.takeUntil(':');
|
||||
}
|
||||
|
||||
final Tag next = this.tag();
|
||||
// TODO: validate type
|
||||
listTag.add(next);
|
||||
|
Loading…
Reference in New Issue
Block a user