Fix negative number handling for snbt parsers
This commit is contained in:
parent
18e98ca918
commit
900a5358a8
7 changed files with 32 additions and 7 deletions
|
@ -73,6 +73,10 @@ enum TagType {
|
|||
break;
|
||||
}
|
||||
|
||||
if (val == "-" || val == "+") {
|
||||
reader.next();
|
||||
}
|
||||
|
||||
if (val == '{') {
|
||||
ret = TagType.Compound; // Detected a CompoundTag
|
||||
reader.next(); // Consume '{'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue