mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Only kick if below level in lobby
This commit is contained in:
1 parent
48fc81fbbf
commit
880a21dde0
1 file changed
+1
-1
@@ -12,7 +12,7 @@ internal class CheckPlayerLevelPatch
|
||||
[HarmonyPostfix]
|
||||
private static void PlayerControl_FixedUpdate_Postfix(PlayerControl __instance)
|
||||
{
|
||||
if (GameState.IsHost)
|
||||
if (GameState.IsHost && GameState.IsLobby)
|
||||
{
|
||||
// Kick players below minimum level
|
||||
if (!__instance.IsLocalPlayer() && __instance.Data.PlayerLevel < BetterGameSettings.KickLevelBelow.GetInt())
|
||||
|
||||
Reference in new issue
Block a user