Add missing string type in FML|HS serializer

Fixes Error: SizeOf error for mods.2.0.name : missing data type: string
This commit is contained in:
deathcap 2016-01-23 15:12:40 -08:00
parent 459da049c1
commit 1f68b30d87

View file

@ -31,6 +31,12 @@ client.on('chat', function(packet) {
}); });
var proto = new ProtoDef(); var proto = new ProtoDef();
// copied from ../../dist/transforms/serializer.js TODO: refactor
proto.addType("string", ["pstring", {
countType: "varint"
}]);
// http://wiki.vg/Minecraft_Forge_Handshake // http://wiki.vg/Minecraft_Forge_Handshake
proto.addType('FML|HS', proto.addType('FML|HS',
[ [