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