1
0
forked from noxious/server

#293: Changed IDs to UUIDs for all entities

This commit is contained in:
2025-01-01 20:53:05 +01:00
parent 465219276d
commit 586bb0ca83
17 changed files with 79 additions and 52 deletions

View File

@ -36,11 +36,11 @@ class ZoneCharacter {
// Leave zone and remove from manager
if (this.character.zone) {
socket.leave(this.character.zone.id.toString())
socket.leave(this.character.zone.id)
ZoneManager.removeCharacter(this.character.id)
// Notify zone players
io.in(this.character.zone.id.toString()).emit('zone:character:leave', this.character.id)
io.in(this.character.zone.id).emit('zone:character:leave', this.character.id)
}
// Notify all players