Skip to content

Commit

Permalink
Update LobbyInstance.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonNikolai committed Dec 15, 2023
1 parent 10ece37 commit 75b363f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/_Scripts/UI/LobbyInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75b363f

Please sign in to comment.