mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 21:52:17 -04:00
Fix Spawn Object Packet Parsing
If read fails a pre-condition within a container, skip it
This commit is contained in:
parent
a885ab9de2
commit
833df2039c
@ -1101,6 +1101,7 @@ function readContainer(buffer, offset, typeArgs, rootNode) {
|
||||
rootNode.this = results.value;
|
||||
for (var index in typeArgs.fields) {
|
||||
var readResults = read(buffer, offset, typeArgs.fields[index], rootNode);
|
||||
if (readResults == null) { continue; }
|
||||
results.size += readResults.size;
|
||||
offset += readResults.size;
|
||||
results.value[typeArgs.fields[index].name] = readResults.value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user