mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-04 21:11:04 -05:00
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:
parent
459da049c1
commit
1f68b30d87
1 changed files with 6 additions and 0 deletions
|
@ -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',
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue