mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-19 09:40:25 -04:00
Fix client_chat example extra array iteration. Closes GH-343
This commit is contained in:
parent
d93c0da39d
commit
a807bdd872
1 changed files with 5 additions and 3 deletions
|
@ -171,9 +171,11 @@ function parseChat(chatObj, parentState) {
|
||||||
|
|
||||||
chat += color(util.format.apply(this, args), getColorize(parentState));
|
chat += color(util.format.apply(this, args), getColorize(parentState));
|
||||||
}
|
}
|
||||||
chatObj.extra.forEach(function(i) {
|
if (chatObj.extra) {
|
||||||
chat += parseChat(chatObj.extra[i], parentState);
|
chatObj.extra.forEach(function(item) {
|
||||||
});
|
chat += parseChat(item, parentState);
|
||||||
|
});
|
||||||
|
}
|
||||||
return chat;
|
return chat;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue