diff --git a/lib/protocol.js b/lib/protocol.js index 1040435..4296cab 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -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; }