From cab98111a7c6f786faf17f51e38e188e90cac8fc Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 20 Sep 2019 12:55:31 +0200 Subject: [PATCH] Fix "player-left" event not being sent --- src/network/Client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/Client.ts b/src/network/Client.ts index d8da32d..ad74990 100644 --- a/src/network/Client.ts +++ b/src/network/Client.ts @@ -57,6 +57,7 @@ export abstract class Client extends EventEmitter { ); break; } + this.emit("player-left", data.name); this.players.splice(idx, 1); break; } -- 2.45.2