mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
fix errors
This commit is contained in:
1 parent
a4aa0296f3
commit
78fa4386ea
2 files changed
+2
-2
No files matched your search
@@ -30,7 +30,7 @@ class AntiCheat
|
||||
}
|
||||
}
|
||||
|
||||
if (GameStates.IsHost)
|
||||
if (GameStates.IsHost && GameStates.IsInGame)
|
||||
{
|
||||
foreach (var player in Main.AllPlayerControls)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ public static class GameStates
|
||||
public static bool IsExilling => ExileController.Instance != null && !(AirshipIsActive && Minigame.Instance != null && Minigame.Instance.isActiveAndEnabled);
|
||||
public static bool IsCountDown => GameStartManager.InstanceExists && GameStartManager.Instance.startState == GameStartManager.StartingStates.Countdown;
|
||||
public static bool IsShip => ShipStatus.Instance != null;
|
||||
public static bool IsHost => AmongUsClient.Instance.AmHost;
|
||||
public static bool IsHost => AmongUsClient.Instance != null && AmongUsClient.Instance.AmHost;
|
||||
public static bool IsBetterHostLobby => Main.BetterHost.Value || Main.AllPlayerControls.Any(pc => pc.GetIsBetterHost());
|
||||
public static bool IsCanMove => PlayerControl.LocalPlayer?.CanMove is true;
|
||||
public static bool IsDead => PlayerControl.LocalPlayer?.Data?.IsDead is true;
|
||||
|
||||
Reference in new issue
Block a user