teeworlds 2.1.9 → 2.2.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/lib/client.js CHANGED
@@ -411,6 +411,9 @@ var Client = /** @class */ (function (_super) {
411
411
  // }
412
412
  // console.log(this.client_infos[a.id])
413
413
  }
414
+ else if (a.type_id == items.OBJ_PLAYER_INFO) {
415
+ _this.player_infos[a.id] = a.parsed;
416
+ }
414
417
  });
415
418
  }
416
419
  });
package/lib/client.ts CHANGED
@@ -538,6 +538,8 @@ export class Client extends EventEmitter {
538
538
  // console.log("bad name", this.client_infos[a.id], toHexStream(mergedSnaps), chunk, AckGameTick, DeltaTick, crc, part_size);
539
539
  // }
540
540
  // console.log(this.client_infos[a.id])
541
+ } else if (a.type_id == items.OBJ_PLAYER_INFO) {
542
+ this.player_infos[a.id] = a.parsed as PlayerInfo;
541
543
  }
542
544
  })
543
545
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teeworlds",
3
- "version": "2.1.9",
3
+ "version": "2.2.1",
4
4
  "description": "Library for (ingame) teeworlds bots.",
5
5
  "license": "MIT",
6
6
  "main": "index.js",