mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-19 01:30:24 -04:00
client ping fixed
This commit is contained in:
parent
e46fd6f1c7
commit
c9a081fd6a
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue