gamedigz 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "main": "lib/index.js",
24
24
  "author": "GameDig Contributors",
25
- "version": "0.2.1",
25
+ "version": "0.3.1",
26
26
  "repository": {
27
27
  "type": "git",
28
28
  "url": "https://github.com/gamedig/node-gamedig.git"
@@ -440,9 +440,8 @@ class Valve extends Core {
440
440
  if (sortedPlayers.length) state.bots.push(sortedPlayers.pop());
441
441
  else state.bots.push({});
442
442
  }
443
- while(state.players.length < numPlayers || sortedPlayers.length) {
444
- if (sortedPlayers.length) state.players.push(sortedPlayers.pop());
445
- else state.players.push({});
443
+ while(state.players.length < numPlayers) {
444
+ state.players.push({});
446
445
  }
447
446
  }
448
447