Skip to content

Commit 981bf04

Browse files
committed
rename clear to flush
1 parent 5fd0f1c commit 981bf04

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sanctumterra/raknet",
3-
"version": "1.3.72",
3+
"version": "1.3.73",
44
"description": "",
55
"main": "dist/index.js",
66
"scripts": {

src/proto/decorators/create.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function Create(id: number) {
2626

2727
if (!properties.includes("serialize")) {
2828
target.prototype.serialize = function () {
29-
this.clear();
29+
this.flush();
3030
if (id <= 255) this.writeUint8(id);
3131
else if (id <= 65535) this.writeUint16(id);
3232
else if (id <= 4294967295) this.writeUint32(id);

src/proto/packets/base-packet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class BasePacket extends BinaryStream {
3232
/**
3333
* Clears the packet.
3434
*/
35-
public clear(): void {
35+
public flush(): void {
3636
this.binary = [];
3737
}
3838
}

0 commit comments

Comments
 (0)