Merge pull request #88 from innoying/patch-2

Fix team scoreboard
This commit is contained in:
Robin Lambertz 2014-05-14 23:45:51 +02:00
commit 70a38779a6

View File

@ -1218,7 +1218,7 @@ function read(buffer, cursor, fieldInfo, rootNodes) {
function write(value, buffer, offset, fieldInfo, rootNode) { function write(value, buffer, offset, fieldInfo, rootNode) {
if (fieldInfo.condition && !fieldInfo.condition(rootNode)) { if (fieldInfo.condition && !fieldInfo.condition(rootNode)) {
return null; return offset;
} }
var type = types[fieldInfo.type]; var type = types[fieldInfo.type];
if (!type) { if (!type) {