fix snbt decoding bug found in #121
This commit is contained in:
@ -247,7 +247,7 @@ func writeListOrArray(e *Encoder, d *decodeState) (tagType byte, err error) {
|
||||
}
|
||||
break
|
||||
}
|
||||
if d.opcode != scanListValue { // TAG_List<TAG_String>
|
||||
if d.opcode != scanListValue && d.opcode != scanEndValue { // TAG_List<TAG_String>
|
||||
panic(phasePanicMsg)
|
||||
}
|
||||
var tagType byte
|
||||
|
Reference in New Issue
Block a user