mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
Fix wrong player count in minecraftvanilla protocol
This commit is contained in:
parent
98e2e68786
commit
f2177204be
1 changed files with 4 additions and 3 deletions
|
@ -54,9 +54,10 @@ class MinecraftVanilla extends Core {
|
|||
name: player.name
|
||||
});
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < Math.min(json.players.online, 10000); i++) {
|
||||
state.players.push({});
|
||||
} else {
|
||||
for (let i = 0; i < Math.min(json.players.online, 10000); i++) {
|
||||
state.players.push({});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue