mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
Emit forgeMods event when receiving server's ModList
This commit is contained in:
parent
2802ac9d2b
commit
c0271874d2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user