mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-12 06:10:25 -04:00
fix ping module to pass tests
This commit is contained in:
parent
b5516a81b3
commit
79e61a4890
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue