@sanctumterra/raknet 1.4.10 → 1.4.11

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.
@@ -6,7 +6,7 @@ const enums_1 = require("../enums");
6
6
  class ConnectedPing extends binarystream_1.BinaryStream {
7
7
  timestamp; // Int64
8
8
  serialize() {
9
- binarystream_1.Uint8.write(this, enums_1.Packets.ConnectedPong);
9
+ binarystream_1.Uint8.write(this, enums_1.Packets.ConnectedPing);
10
10
  binarystream_1.Int64.write(this, this.timestamp);
11
11
  return this.getBuffer();
12
12
  }
@@ -7,7 +7,7 @@ class ConnectedPong extends binarystream_1.BinaryStream {
7
7
  pingTimestamp; // Int64
8
8
  pongTimestamp; // Int64
9
9
  serialize() {
10
- binarystream_1.Uint8.write(this, enums_1.Packets.ConnectedPing);
10
+ binarystream_1.Uint8.write(this, enums_1.Packets.ConnectedPong);
11
11
  binarystream_1.Int64.write(this, this.pingTimestamp);
12
12
  binarystream_1.Int64.write(this, this.pongTimestamp);
13
13
  return this.getBuffer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanctumterra/raknet",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",