From 1f68b30d87b15b88e95b7ddd47f98a30b82eb6d3 Mon Sep 17 00:00:00 2001 From: deathcap Date: Sat, 23 Jan 2016 15:12:40 -0800 Subject: [PATCH] Add missing string type in FML|HS serializer Fixes Error: SizeOf error for mods.2.0.name : missing data type: string --- examples/client_forge/client_forge.js | 6 ++++++ 1 file changed, 6 insertions(+) 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', [