mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-04 21:11:04 -05:00
Register client plugin channels on FML|HS ServerHello
This may not be strictly necessary, in either case Forge server with -Dfml.debugNetworkHandshake=true logs: [14:26:03] [Netty Server IO #3/INFO] [FML]: Client protocol version 2
This commit is contained in:
parent
e9159a432b
commit
2787adbad3
1 changed files with 5 additions and 0 deletions
|
@ -117,6 +117,11 @@ client.on('custom_payload', function(packet) {
|
||||||
// TODO: support higher protocols, if they change
|
// TODO: support higher protocols, if they change
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client.write('custom_payload', {
|
||||||
|
channel: 'REGISTER',
|
||||||
|
data: new Buffer(['FML|HS', 'FML', 'FML|MP', 'FML', 'FORGE'].join('\0'))
|
||||||
|
});
|
||||||
|
|
||||||
var clientHello = proto.createPacketBuffer('FML|HS', {
|
var clientHello = proto.createPacketBuffer('FML|HS', {
|
||||||
discriminator: 1, // ClientHello
|
discriminator: 1, // ClientHello
|
||||||
fmlProtocolVersionClient: parsed.data.fmlProtocolVersionServer
|
fmlProtocolVersionClient: parsed.data.fmlProtocolVersionServer
|
||||||
|
|
Loading…
Reference in a new issue