@sanctumterra/raknet 1.3.72 → 1.3.73

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.
@@ -13,7 +13,7 @@ function Create(id) {
13
13
  const properties = Object.getOwnPropertyNames(target.prototype);
14
14
  if (!properties.includes("serialize")) {
15
15
  target.prototype.serialize = function () {
16
- this.clear();
16
+ this.flush();
17
17
  if (id <= 255)
18
18
  this.writeUint8(id);
19
19
  else if (id <= 65535)
@@ -21,6 +21,6 @@ export declare class BasePacket extends BinaryStream {
21
21
  /**
22
22
  * Clears the packet.
23
23
  */
24
- clear(): void;
24
+ flush(): void;
25
25
  }
26
26
  //# sourceMappingURL=base-packet.d.ts.map
@@ -30,7 +30,7 @@ class BasePacket extends binarystream_1.BinaryStream {
30
30
  /**
31
31
  * Clears the packet.
32
32
  */
33
- clear() {
33
+ flush() {
34
34
  this.binary = [];
35
35
  }
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanctumterra/raknet",
3
- "version": "1.3.72",
3
+ "version": "1.3.73",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {