mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Merge pull request #246 from rom1504/fix_protocol_version_in_ping
fix ping.js protocol version
This commit is contained in:
commit
7e7d5da2ba
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
var net = require('net')
|
||||
, Client = require('./client')
|
||||
, states = require('./transforms/serializer').states
|
||||
;
|
||||
, states = require('./transforms/serializer').states;
|
||||
var version = require('./version');
|
||||
|
||||
module.exports = ping;
|
||||
|
||||
|
@ -32,7 +32,7 @@ function ping(options, cb) {
|
|||
|
||||
client.on('connect', function() {
|
||||
client.write('set_protocol', {
|
||||
protocolVersion: 4,
|
||||
protocolVersion: version.version,
|
||||
serverHost: host,
|
||||
serverPort: port,
|
||||
nextState: 1
|
||||
|
|
Loading…
Reference in a new issue