1
0
forked from noxious/server

Disconnect fix, move improvements, baseEvent improvement

This commit is contained in:
2025-02-12 01:44:57 +01:00
parent e40a56825a
commit deac2892fb
3 changed files with 107 additions and 79 deletions

View File

@@ -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)
}