From 75b363fbdd719fd13a61d8533c5600f8e8384f90 Mon Sep 17 00:00:00 2001 From: Leon Nikolai Engelsvold Date: Fri, 15 Dec 2023 06:37:20 +0100 Subject: [PATCH] Update LobbyInstance.cs --- Assets/_Scripts/UI/LobbyInstance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/_Scripts/UI/LobbyInstance.cs b/Assets/_Scripts/UI/LobbyInstance.cs index cfedec7..b451d9b 100644 --- a/Assets/_Scripts/UI/LobbyInstance.cs +++ b/Assets/_Scripts/UI/LobbyInstance.cs @@ -247,7 +247,7 @@ private async void CallbacksOnLobbyChanged(ILobbyChanges changes) public async Task KickPlayer(string playerId) { - if (playerId == AuthenticationService.Instance.PlayerId) + if (Lobby.HostId == AuthenticationService.Instance.PlayerId && Lobby.HostId == playerId) { await LobbyService.Instance.DeleteLobbyAsync(Lobby.Id); return;