mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00: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
|
name: player.name
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
for (let i = 0; i < Math.min(json.players.online, 10000); i++) {
|
for (let i = 0; i < Math.min(json.players.online, 10000); i++) {
|
||||||
state.players.push({});
|
state.players.push({});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue