mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-04 13:01:14 -05:00
Emit forgeMods event when receiving server's ModList
This commit is contained in:
parent
2802ac9d2b
commit
c0271874d2
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue