FML|HS: ModList: send empty client modlist

This commit is contained in:
deathcap 2016-01-23 14:31:03 -08:00
parent 2787adbad3
commit cb9e6db991

View file

@ -93,7 +93,23 @@ proto.addType('FML|HS',
"default": "void" "default": "void"
} }
], ],
},
// ModList
{
"name": "numberOfMods",
"type": [
"switch",
{
"compareTo": "discriminator",
"fields": {
"2": "varint"
},
"default": "void"
} }
// TODO: mods array: modname string, modversion string
],
},
] ]
] ]
); );
@ -131,6 +147,16 @@ client.on('custom_payload', function(packet) {
channel: 'FML|HS', channel: 'FML|HS',
data: clientHello data: clientHello
}); });
var modList = proto.createPacketBuffer('FML|HS', {
discriminator: 2, // ModList
numberOfMods: 0,
// TODO: send some mods
});
client.write('custom_payload', {
channel: 'FML|HS',
data: modList
});
} }
} }
}); });