Fix "player-left" event not being sent #29
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ export abstract class Client extends EventEmitter {
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
this.emit("player-left", data.name);
|
||||||
this.players.splice(idx, 1);
|
this.players.splice(idx, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue