Emit forgeMods event when receiving server's ModList

This commit is contained in:
deathcap 2016-01-23 20:56:00 -08:00
parent 2802ac9d2b
commit c0271874d2

View file

@ -220,7 +220,8 @@ function fmlHandshakeStep(client, data)
{ {
assert.ok(parsed.data.discriminator === 'ModList', `expected ModList in WAITINGSERVERDATA state, got ${parsed.data.discriminator}`); assert.ok(parsed.data.discriminator === 'ModList', `expected ModList in WAITINGSERVERDATA state, got ${parsed.data.discriminator}`);
debug('Server ModList:',parsed.data.mods); 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; client.fmlHandshakeState = FMLHandshakeClientState.WAITINGSERVERCOMPLETE;
break; break;
} }