mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Fix hide and seek getting stuck at loading
This commit is contained in:
1 parent
a35b0e9a5e
commit
00e4f6b673
1 file changed
+5
-5
@@ -268,7 +268,7 @@ internal class RoleManagerPatch
|
||||
{
|
||||
Logger.LogHeader($"Better Role Assignment Has Started", "RoleManager");
|
||||
|
||||
int NumImpostors = BetterGameSettings.HideAndSeekImpNum.GetInt();
|
||||
int NumImpostors = BetterGameSettings.HideAndSeekImpNum?.GetInt() ?? 1;
|
||||
|
||||
if (NumImpostors > Main.AllPlayerControls.Count)
|
||||
NumImpostors = Main.AllPlayerControls.Count;
|
||||
@@ -281,10 +281,10 @@ internal class RoleManagerPatch
|
||||
int[] betterImpostorSettings =
|
||||
[
|
||||
GameOptionsManager.Instance.currentHideNSeekGameOptions.ImpostorPlayerID,
|
||||
BetterGameSettingsTemp.HideAndSeekImp2.GetValue(),
|
||||
BetterGameSettingsTemp.HideAndSeekImp3.GetValue(),
|
||||
BetterGameSettingsTemp.HideAndSeekImp4.GetValue(),
|
||||
BetterGameSettingsTemp.HideAndSeekImp5.GetValue()
|
||||
BetterGameSettingsTemp.HideAndSeekImp2?.GetValue() ?? -1,
|
||||
BetterGameSettingsTemp.HideAndSeekImp3?.GetValue() ?? -1,
|
||||
BetterGameSettingsTemp.HideAndSeekImp4?.GetValue() ?? -1,
|
||||
BetterGameSettingsTemp.HideAndSeekImp5?.GetValue() ?? -1
|
||||
];
|
||||
|
||||
for (int i = 0; i < NumImpostors; i++)
|
||||
|
||||
Reference in new issue
Block a user