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

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