mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
Set state property instead of setSerializer() to ensure serializers are properly piped
This commit is contained in:
parent
9a68fd6c34
commit
d0f64e9c65
@ -54,7 +54,7 @@ module.exports = function(client) {
|
||||
|
||||
// reinitialize client object with new version TODO: move out of its constructor
|
||||
client.version = majorVersion;
|
||||
client.setSerializer(states.HANDSHAKING);
|
||||
client.state = states.HANDSHAKING;
|
||||
|
||||
if (response.modinfo && response.modinfo.type === 'FML') {
|
||||
// Use the list of Forge mods from the server ping, so client will match server
|
||||
|
Loading…
x
Reference in New Issue
Block a user