mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
cache into variable
This commit is contained in:
1 parent
2f2103744a
commit
55d557aa2d
1 file changed
+3
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user