From 9bb788bb7a6e442a8d91fd49132b9fe0a46a64b0 Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 23 Jan 2016 14:12:50 -0800 Subject: [PATCH] FML|HS: ServerHello: overrideDimension only sent if fmlProtocolVersion>=2 --- examples/client_forge/client_forge.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/client_forge/client_forge.js b/examples/client_forge/client_forge.js index 6e36a25..64259cf 100644 --- a/examples/client_forge/client_forge.js +++ b/examples/client_forge/client_forge.js @@ -60,9 +60,7 @@ proto.addType('FML|HS', [ { "compareTo": "discriminator", "fields": { - "0": "int" - /* TODO - [ + "0": [ "switch", { // "Only sent if protocol version is greater than 1." @@ -75,13 +73,11 @@ proto.addType('FML|HS', [ } ] }, - */ + "default": "void" }, - "default": "void" - }, - ] - } - ] + ], + } + ] ]); client.on('custom_payload', function(packet) {