feat: dont delete raw.players
This commit is contained in:
parent
fc2791f2b9
commit
8cb5faefc8
|
@ -271,7 +271,7 @@ export default class valve extends Core {
|
|||
const sortedPlayers = state.raw.players.sort((a, b) => {
|
||||
return botProbability(a) - botProbability(b)
|
||||
})
|
||||
delete state.raw.players
|
||||
|
||||
const numBots = state.raw.numbots || 0
|
||||
|
||||
while (state.bots.length < numBots && sortedPlayers.length) {
|
||||
|
|
Loading…
Reference in New Issue