mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 22:23:21 -04:00
client ping fixed
This commit is contained in:
parent
e46fd6f1c7
commit
c9a081fd6a
@ -37,7 +37,7 @@ function ping(options, cb) {
|
|||||||
unused1: 1,
|
unused1: 1,
|
||||||
customPayloadId: 250,
|
customPayloadId: 250,
|
||||||
magicText: "MC|PingHost",
|
magicText: "MC|PingHost",
|
||||||
len: 3 + ip.length + 4,
|
len: 3 + host.length + 4,
|
||||||
magic: 73,
|
magic: 73,
|
||||||
ip: host,
|
ip: host,
|
||||||
port: port,
|
port: port,
|
||||||
|
@ -481,7 +481,7 @@ var packets = {
|
|||||||
],
|
],
|
||||||
0xfe: [
|
0xfe: [
|
||||||
{ name: "unused1", type: "byte" },
|
{ name: "unused1", type: "byte" },
|
||||||
{ name: "customPayloadId", type: "byte" },
|
{ name: "customPayloadId", type: "ubyte" },
|
||||||
{ name: "magicText", type: "string" },
|
{ name: "magicText", type: "string" },
|
||||||
{ name: "len", type: "short" },
|
{ name: "len", type: "short" },
|
||||||
{ name: "magic", type: "byte" },
|
{ name: "magic", type: "byte" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user