This commit is contained in:
Gurge44 committed 2026-02-20 10:35:13 +01:00
1 parent 6b40ca1920
commit 1cacb86478
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -277,7 +277,7 @@ public static class CaptureTheFlag
{
PlayerControl pc = key.GetPlayer();
if (pc != null && outfit != null)
if (pc && outfit != null)
Utils.RpcChangeSkin(pc, outfit);
}
}
+2 -2
View File
@@ -644,7 +644,7 @@ public static class KingOfTheZones
}
}
void ResetSkins() => DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc != null && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
void ResetSkins() => DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
}
public static bool IsNotInLocalPlayersTeam(PlayerControl pc)
@@ -897,7 +897,7 @@ public static class KingOfTheZones
{
if (tie) return;
GameGoing = false;
DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc != null && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
DefaultOutfits.Select(x => (pc: x.Key.GetPlayer(), outfit: x.Value)).DoIf(x => x.pc && x.outfit != null, x => Utils.RpcChangeSkin(x.pc, x.outfit));
KOTZTeam winner = Points.GetKeyByValue(highestPoints);
CustomWinnerHolder.WinnerIds = PlayerTeams.Where(x => x.Value == winner).Select(x => x.Key).ToHashSet();
Color color = winner.GetColor();