mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-04 21:11:04 -05:00
FML|HS: ServerHello: decode overrideDimension
This commit is contained in:
parent
09b4dc8358
commit
8f1704bc7a
1 changed files with 31 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue