cache into variable

This commit is contained in:
Gurge44 committed 2026-02-14 13:39:26 +01:00
1 parent 2f2103744a
commit 55d557aa2d
1 file changed
+3 -2
+3 -2
View File
@@ -112,6 +112,7 @@ public static class FixedUpdateCaller
NonLowLoadPlayerIndex = Math.Min(0, -(30 - count));
CustomGameMode currentGameMode = Options.CurrentGameMode;
bool vanilla = GameStates.CurrentServerType == GameStates.ServerType.Vanilla;
for (var index = 0; index < count; index++)
{
@@ -124,8 +125,8 @@ public static class FixedUpdateCaller
FixedUpdatePatch.Postfix(pc, NonLowLoadPlayerIndex != index);
if (lobby) continue;
if (NonLowLoadPlayerIndex == index && GameStates.CurrentServerType == GameStates.ServerType.Vanilla)
if (vanilla && NonLowLoadPlayerIndex == index)
Utils.NotifyRoles(SpecifySeer: pc, ForceLoop: true, SendOption: SendOption.None);
switch (currentGameMode)