Fix "player-left" event not being sent (#29)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2019-09-20 10:59:15 +00:00 committed by Gitea
parent a73828fc86
commit 7156fe23e5

View file

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