Revert "Fix team scoreboard"

This reverts commit 95bacd4bfd2b68b0084c3e3b186e796838223a20.
This commit is contained in:
Luke Young 2014-05-14 13:45:46 -05:00
parent 95bacd4bfd
commit 5f349d338d

View File

@ -1275,10 +1275,8 @@ function createPacketBuffer(packetId, state, params, isServer) {
offset = writeVarInt(packetId, buffer, offset);
packet.forEach(function(fieldInfo) {
var value = params[fieldInfo.name];
if (!fieldInfo.condition || fieldInfo.condition(params)) {
if(typeof value === "undefined") value = 0; // TODO : Why ?
offset = write(value, buffer, offset, fieldInfo, params);
}
if(typeof value === "undefined") value = 0; // TODO : Why ?
offset = write(value, buffer, offset, fieldInfo, params);
});
return buffer;
}