forked from noxious/server
#293: Changed IDs to UUIDs for all entities
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user