mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-02 16:49:37 +01:00
parent
95e0cff03c
commit
3b5aaa1ff5
@ -96,6 +96,11 @@ import java.util.stream.IntStream;
|
|||||||
this.buffer.expect(Tokens.ARRAY_BEGIN);
|
this.buffer.expect(Tokens.ARRAY_BEGIN);
|
||||||
final boolean prefixedIndex = this.buffer.peek() == '0' && this.buffer.peek(1) == ':';
|
final boolean prefixedIndex = this.buffer.peek() == '0' && this.buffer.peek(1) == ':';
|
||||||
while (this.buffer.hasMore()) {
|
while (this.buffer.hasMore()) {
|
||||||
|
if (this.buffer.peek() == Tokens.ARRAY_END) {
|
||||||
|
this.buffer.advance();
|
||||||
|
return listTag;
|
||||||
|
}
|
||||||
|
|
||||||
if (prefixedIndex) {
|
if (prefixedIndex) {
|
||||||
this.buffer.takeUntil(':');
|
this.buffer.takeUntil(':');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user