diff --git a/netcode/index.ts b/netcode/index.ts index aaedf26..14ecc43 100644 --- a/netcode/index.ts +++ b/netcode/index.ts @@ -72,7 +72,7 @@ export class GameObjectRegister { } } as { [id: string]: (data: any) => any } - set_self(uuid: string) { + set_self = (uuid: string) => { this.self.value = this.players.get(uuid) ?? null } }