From 52078273fea086f712ad9caae003d88942c89bb0 Mon Sep 17 00:00:00 2001 From: Will Franzen Date: Wed, 31 Dec 2014 12:24:13 -0600 Subject: [PATCH] Fix silly typos --- lib/protocol.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/protocol.js b/lib/protocol.js index 902ceca..f3f121d 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -334,8 +334,8 @@ var packets = { { name: "bitMap", type: "ushort" }, ]}}}, { name: "data", type: "restBuffer" } - ]} - explosion: {id: 0x27, fields: [ + ]}, + explosion: {id: 0x27, fields: [ { name: "x", type: "float" }, { name: "y", type: "float" }, { name: "z", type: "float" }, @@ -486,14 +486,14 @@ var packets = { }, typeArgs: { countFor: "properties", type: "varint" }}, { name: "properties", type: "array", condition: function(field_values) { return field_values["action"] === 0; - }, typeArgs: { count: propertiesLength, type: "container", typeArgs: { fields: [ - { name: "name", type: "string" } + }, typeArgs: { count: "propertiesLength", type: "container", typeArgs: { fields: [ + { name: "name", type: "string" }, { name: "value", type: "string" }, { name: "isSigned", type: "bool" }, { name: "signature", type: "string", condition: function(field_values) { return field_values["isSigned"]; - }} - ]}}, + }} + ]}}}, { name: "gamemode", type: "varint", condition: function(field_values) { return field_values["action"] === 0 || field_values["action"] === 1; }},