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/browser/build/global.js +1 -1
- package/browser/build/module.js +1 -1
- package/package.json +1 -1
- package/src/bot.js +2 -2
package/package.json
CHANGED
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
|
|