From 023aa78fa9ce4e054f8de3973c5278448cee61d4 Mon Sep 17 00:00:00 2001 From: xshady Date: Thu, 29 Aug 2024 20:31:41 +0300 Subject: [PATCH] use WeakSet instead --- src/altv-inject/client/setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/altv-inject/client/setup.ts b/src/altv-inject/client/setup.ts index fc49232..0ee8000 100644 --- a/src/altv-inject/client/setup.ts +++ b/src/altv-inject/client/setup.ts @@ -24,7 +24,7 @@ export class ClientSetup { private readonly origAltOnServer?: (event: string, handler: (...args: any[]) => void) => void private readonly log = new Logger("client") private readonly clearPlayerMeta?: () => void - private readonly baseObjectsCreateEmitted = new Set() + private readonly baseObjectsCreateEmitted = new WeakSet() private readonly onResourceStop = (): void => { this.resetGame()