From 7e3a279b56d9e18b83dde276455ee1d02679447b Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Thu, 20 Nov 2025 21:51:39 -0600 Subject: [PATCH] Fix imps and crew being shown twice in view pane --- MiraAPI/Patches/Options/LobbyViewPanePatches.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs index 79164cc..13f1f5a 100644 --- a/MiraAPI/Patches/Options/LobbyViewPanePatches.cs +++ b/MiraAPI/Patches/Options/LobbyViewPanePatches.cs @@ -186,7 +186,8 @@ public static class LobbyViewPanePatches num -= 0.696f; var roles = RoleManager.Instance.AllRoles.ToArray().Where(x => x is not ICustomRole && !x.IsRoleBlacklisted() && x.Role != RoleTypes.Crewmate && - x.Role != RoleTypes.Impostor && + x.Role != RoleTypes.Impostor && ((i == 0 && x.TeamType is RoleTeamTypes.Crewmate) || + (i == 1 && x.TeamType is RoleTeamTypes.Impostor)) && x.Role != RoleTypes.CrewmateGhost && x.Role != RoleTypes.ImpostorGhost).ToList(); for (int j = 0; j < roles.Count; j++) {