mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-01 23:20:36 -04:00
Revert "Fix anon structures not working in sizeOf"
This reverts commit 86f1f23053a1c2282562c578ac1211184f673151.
This commit is contained in:
parent
2b98c09fba
commit
a267cc1515
@ -147,9 +147,6 @@ function sizeOfContainer(value, typeArgs, rootNode) {
|
|||||||
rootNode.this = value;
|
rootNode.this = value;
|
||||||
for(var index in typeArgs) {
|
for(var index in typeArgs) {
|
||||||
tryCatch(() => {
|
tryCatch(() => {
|
||||||
if (typeArgs[index].anon)
|
|
||||||
size += this.sizeOf(value, typeArgs[index].type, rootNode);
|
|
||||||
else
|
|
||||||
size += this.sizeOf(value[typeArgs[index].name], typeArgs[index].type, rootNode);
|
size += this.sizeOf(value[typeArgs[index].name], typeArgs[index].type, rootNode);
|
||||||
}, (e) => {
|
}, (e) => {
|
||||||
if (typeArgs && typeArgs[index] && typeArgs[index].name)
|
if (typeArgs && typeArgs[index] && typeArgs[index].name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user