mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 21:24:25 -04:00
fix ping
This commit is contained in:
parent
eb5764e7ab
commit
936a12e6e0
@ -40,7 +40,7 @@ function ping(options, cb) {
|
||||
// TODO: refactor with src/client/setProtocol.js
|
||||
client.on('connect', function() {
|
||||
client.write('set_protocol', {
|
||||
protocolVersion: -1,
|
||||
protocolVersion: options.protocolVersion,
|
||||
serverHost: options.host,
|
||||
serverPort: options.port,
|
||||
nextState: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user