mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -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}`);
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user