From 2787adbad37b0a40146dcc7f5a177071e24b9821 Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 23 Jan 2016 14:26:11 -0800 Subject: [PATCH] Register client plugin channels on FML|HS ServerHello This may not be strictly necessary, in either case Forge server with -Dfml.debugNetworkHandshake=true logs: [14:26:03] [Netty Server IO #3/INFO] [FML]: Client protocol version 2 --- examples/client_forge/client_forge.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/client_forge/client_forge.js b/examples/client_forge/client_forge.js index 57fcbad..e29fb86 100644 --- a/examples/client_forge/client_forge.js +++ b/examples/client_forge/client_forge.js @@ -117,6 +117,11 @@ client.on('custom_payload', function(packet) { // TODO: support higher protocols, if they change } + client.write('custom_payload', { + channel: 'REGISTER', + data: new Buffer(['FML|HS', 'FML', 'FML|MP', 'FML', 'FORGE'].join('\0')) + }); + var clientHello = proto.createPacketBuffer('FML|HS', { discriminator: 1, // ClientHello fmlProtocolVersionClient: parsed.data.fmlProtocolVersionServer