Fix wrong player count in minecraftvanilla protocol

This commit is contained in:
Pascal Sthamer 2020-02-15 22:05:13 +01:00
parent 98e2e68786
commit f2177204be
No known key found for this signature in database
GPG key ID: BD32A96DA773ADAF

View file

@ -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({});
}
}
}