1
0
forked from noxious/server

Added getter & setter functions to all entities

This commit is contained in:
2024-12-26 15:15:18 +01:00
parent 6a27ccff31
commit 691abb7c4f
33 changed files with 1500 additions and 168 deletions

View File

@ -38,7 +38,7 @@ export default class DisconnectEvent {
gameLogger.info('User disconnected along with their character')
// Inform other clients that the character has left
this.io.in(character.zoneId.toString()).emit('zone:character:leave', character.id)
this.io.in(character.zone!.id.toString()).emit('zone:character:leave', character.id)
this.io.emit('character:disconnect', character.id)
} catch (error: any) {
gameLogger.error('disconnect error', error.message)