yolkbot 0.1.2-alpha.5 → 0.1.2-alpha.6

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yolkbot",
3
3
  "description": "create a shell shockers bot in under 10 lines.",
4
- "version": "0.1.2-alpha.5",
4
+ "version": "0.1.2-alpha.6",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
package/src/bot.js CHANGED
@@ -1503,10 +1503,10 @@ export class Bot {
1503
1503
  const out = CommOut.getBuffer();
1504
1504
  out.packInt8(CommCode.clientReady);
1505
1505
  out.send(this.game.socket);
1506
+
1507
+ this.game.socket.onmessage = (msg) => this._packetQueue.push(msg.data);
1506
1508
  }
1507
1509
 
1508
- this.game.socket.onmessage = (msg) => this._packetQueue.push(msg.data);
1509
-
1510
1510
  if (this.autoUpdate)
1511
1511
  this.updateIntervalId = setInterval(() => this.update(), this.updateInterval);
1512
1512