mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
minor fixes
This commit is contained in:
parent
f78840dfcf
commit
aae67aec9c
4 changed files with 23 additions and 10 deletions
|
|
@ -130,4 +130,10 @@ export class Match {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public getPlayerByUserId(userId: number): Player | null {
|
||||
const user = this.getUserInfo(userId);
|
||||
const player = this.playerEntityMap.get(user.entityId);
|
||||
return player || null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue