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

This commit is contained in:
Hamcha 2019-09-20 12:55:31 +02:00
parent a73828fc86
commit cab98111a7
Signed by: hamcha
GPG key ID: 44AD3571EB09A39E

View file

@ -57,6 +57,7 @@ export abstract class Client extends EventEmitter {
);
break;
}
this.emit("player-left", data.name);
this.players.splice(idx, 1);
break;
}