Skip to content

Commit

Permalink
use WeakSet instead
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Aug 29, 2024
1 parent 0a13a5b commit 023aa78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/altv-inject/client/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<alt.BaseObject>()
private readonly baseObjectsCreateEmitted = new WeakSet<alt.BaseObject>()

private readonly onResourceStop = (): void => {
this.resetGame()
Expand Down

0 comments on commit 023aa78

Please sign in to comment.