mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
FIx null ref
This commit is contained in:
1 parent
275cb6c98e
commit
919a82648f
1 file changed
+3
@@ -12,6 +12,9 @@ internal class CheckPlayerLevelPatch
|
||||
[HarmonyPostfix]
|
||||
private static void PlayerControl_FixedUpdate_Postfix(PlayerControl __instance)
|
||||
{
|
||||
if (__instance.Data == null)
|
||||
return;
|
||||
|
||||
if (GameState.IsHost && GameState.IsLobby)
|
||||
{
|
||||
// Kick players below minimum level
|
||||
|
||||
Reference in new issue
Block a user