mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-08 20:30:28 -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,
|
||||
customPayloadId: 250,
|
||||
magicText: "MC|PingHost",
|
||||
len: 3 + ip.length + 4,
|
||||
len: 3 + host.length + 4,
|
||||
magic: 73,
|
||||
ip: host,
|
||||
port: port,
|
||||
|
|
|
@ -481,7 +481,7 @@ var packets = {
|
|||
],
|
||||
0xfe: [
|
||||
{ name: "unused1", type: "byte" },
|
||||
{ name: "customPayloadId", type: "byte" },
|
||||
{ name: "customPayloadId", type: "ubyte" },
|
||||
{ name: "magicText", type: "string" },
|
||||
{ name: "len", type: "short" },
|
||||
{ name: "magic", type: "byte" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue