FML|HS: ServerHello: decode overrideDimension

This commit is contained in:
deathcap 2016-01-23 14:08:20 -08:00
parent 09b4dc8358
commit 8f1704bc7a

View file

@ -51,8 +51,37 @@ proto.addType('FML|HS', [
},
"default": "void"
},
] }
]
],
},
{
"name": "overrideDimension",
"type": [
"switch",
{
"compareTo": "discriminator",
"fields": {
"0": "int"
/* TODO
[
"switch",
{
// "Only sent if protocol version is greater than 1."
"compareTo": "fmlProtocolVersion",
"fields": {
"0": "void",
"1": "void"
},
"default": "int"
}
]
},
*/
},
"default": "void"
},
]
}
]
]);
client.on('custom_payload', function(packet) {