Fix "player-left" event not being sent (#29)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a73828fc86
commit
7156fe23e5
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ export abstract class Client extends EventEmitter {
|
|||
);
|
||||
break;
|
||||
}
|
||||
this.emit("player-left", data.name);
|
||||
this.players.splice(idx, 1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue