mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -04:00
fix ping module to pass tests
This commit is contained in:
parent
b5516a81b3
commit
79e61a4890
@ -8,7 +8,7 @@ function ping(options, cb) {
|
||||
var port = options.port || 25565;
|
||||
|
||||
var client = new Client();
|
||||
client.on(0xff, function(packet) {
|
||||
client.once(0xff, function(packet) {
|
||||
var parts = packet.reason.split('\u0000');
|
||||
var results;
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user