teeworlds 2.4.9 → 2.5.0

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/lib/client.js CHANGED
@@ -168,7 +168,6 @@ var Client = /** @class */ (function (_super) {
168
168
  _this.game = new game_1.Game(_this);
169
169
  _this.SnapshotUnpacker = new snapshot_2.SnapshotWrapper(_this);
170
170
  _this.UUIDManager = new UUIDManager_1.UUIDManager();
171
- _this.UUIDManager.RegisterName("i-dont-know@ddnet.tw", NETMSG_Sys.NETMSG_IDONTKNOW);
172
171
  _this.UUIDManager.RegisterName("what-is@ddnet.tw", NETMSG_Sys.NETMSG_WHATIS);
173
172
  _this.UUIDManager.RegisterName("it-is@ddnet.tw", NETMSG_Sys.NETMSG_ITIS);
174
173
  _this.UUIDManager.RegisterName("i-dont-know@ddnet.tw", NETMSG_Sys.NETMSG_IDONTKNOW);
@@ -443,7 +442,7 @@ var Client = /** @class */ (function (_super) {
443
442
  var i_am_npm_package = new MsgPacker_1.MsgPacker(0, true, 1);
444
443
  i_am_npm_package.AddBuffer(_this.UUIDManager.LookupType(NETMSG_Sys.NETMSG_I_AM_NPM_PACKAGE).hash);
445
444
  i_am_npm_package.AddString("https://www.npmjs.com/package/teeworlds/v/".concat(version));
446
- _this.SendMsgEx([client_version, info, i_am_npm_package]);
445
+ _this.SendMsgEx([i_am_npm_package, client_version, info]);
447
446
  }
448
447
  else if (packet[3] == 0x4) {
449
448
  // disconnected
package/lib/client.ts CHANGED
@@ -295,7 +295,6 @@ export class Client extends EventEmitter {
295
295
 
296
296
  this.UUIDManager = new UUIDManager();
297
297
 
298
- this.UUIDManager.RegisterName("i-dont-know@ddnet.tw", NETMSG_Sys.NETMSG_IDONTKNOW);
299
298
  this.UUIDManager.RegisterName("what-is@ddnet.tw", NETMSG_Sys.NETMSG_WHATIS);
300
299
  this.UUIDManager.RegisterName("it-is@ddnet.tw", NETMSG_Sys.NETMSG_ITIS);
301
300
  this.UUIDManager.RegisterName("i-dont-know@ddnet.tw", NETMSG_Sys.NETMSG_IDONTKNOW);
@@ -601,7 +600,7 @@ export class Client extends EventEmitter {
601
600
  i_am_npm_package.AddString(`https://www.npmjs.com/package/teeworlds/v/${version}`);
602
601
 
603
602
 
604
- this.SendMsgEx([client_version, info, i_am_npm_package])
603
+ this.SendMsgEx([i_am_npm_package, client_version, info])
605
604
  } else if (packet[3] == 0x4) {
606
605
  // disconnected
607
606
  this.State = States.STATE_OFFLINE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teeworlds",
3
- "version": "2.4.9",
3
+ "version": "2.5.0",
4
4
  "description": "Library for (ingame) teeworlds bots.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",