Fix "player-left" event not being sent #29

Merged
hamcha merged 1 commit from bugfix/network-tests into master 2019-09-20 10:59:15 +00:00
Showing only changes of commit cab98111a7 - Show all commits

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