Fix the issue of snbt being unable to handle nested Tag*Arrays in TagCompound

This commit is contained in:
Tnze
2023-04-23 23:00:24 +08:00
parent d4d9653038
commit a511ad3d2a
2 changed files with 3 additions and 2 deletions

View File

@ -234,7 +234,7 @@ func stateArrayT(s *scanner, c byte) int {
return scanSkipSpace
}
if c == ']' { // empty array
return scanEndValue
return stateEndValue(s, c)
}
return stateBeginValue(s, c)
}