From c0271874d278c3c476995141e0c75c12effe9e3b Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 23 Jan 2016 20:56:00 -0800 Subject: [PATCH] Emit forgeMods event when receiving server's ModList --- src/fml.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fml.js b/src/fml.js index 38b6686..9d47ed9 100644 --- a/src/fml.js +++ b/src/fml.js @@ -220,7 +220,8 @@ function fmlHandshakeStep(client, data) { assert.ok(parsed.data.discriminator === 'ModList', `expected ModList in WAITINGSERVERDATA state, got ${parsed.data.discriminator}`); debug('Server ModList:',parsed.data.mods); - // TODO: client/server check if mods compatible + // Emit event so client can check client/server mod compatibility + client.emit('forgeMods', parsed.data.mods); client.fmlHandshakeState = FMLHandshakeClientState.WAITINGSERVERCOMPLETE; break; }