From 919a82648f986770d1b39ccfc9324747d6efbb9f Mon Sep 17 00:00:00 2001 From: D1GQ Date: Wed, 18 Mar 2026 21:36:03 -0500 Subject: [PATCH] FIx null ref --- src/Patches/Gameplay/Anticheat/CheckPlayerLevelPatch.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Patches/Gameplay/Anticheat/CheckPlayerLevelPatch.cs b/src/Patches/Gameplay/Anticheat/CheckPlayerLevelPatch.cs index b3b597a..25cfa8d 100644 --- a/src/Patches/Gameplay/Anticheat/CheckPlayerLevelPatch.cs +++ b/src/Patches/Gameplay/Anticheat/CheckPlayerLevelPatch.cs @@ -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