mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-09-27 21:01:34 +02:00
Fix wrong player count in minecraftvanilla protocol
This commit is contained in:
parent
98e2e68786
commit
f2177204be
@ -54,11 +54,12 @@ class MinecraftVanilla extends Core {
|
||||
name: player.name
|
||||
});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (let i = 0; i < Math.min(json.players.online, 10000); i++) {
|
||||
state.players.push({});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
varIntBuffer(num) {
|
||||
return Buffer.from(Varint.encode(num));
|
||||
|
Loading…
Reference in New Issue
Block a user