forked from noxious/server
Disconnect fix, move improvements, baseEvent improvement
This commit is contained in:
@@ -28,6 +28,7 @@ export abstract class BaseEvent {
|
||||
}
|
||||
|
||||
protected async getCharacter(): Promise<Character | null> {
|
||||
if (!this.socket.characterId) return null
|
||||
const characterRepository = new CharacterRepository()
|
||||
return characterRepository.getById(this.socket.characterId)
|
||||
}
|
||||
|
Reference in New Issue
Block a user