diff --git a/Plugin/Components/HuntManager.cs b/Plugin/Components/HuntManager.cs index 471377f..2456c79 100644 --- a/Plugin/Components/HuntManager.cs +++ b/Plugin/Components/HuntManager.cs @@ -36,7 +36,9 @@ public void InitRaid() public void OnBotCreated(BotOwner bot) { - if (!bot.SpawnProfileData.SpawnParams.Id_spawn.ToLower().Contains("hunt")) return; + // Bots spawned outside the normal EFT flow (e.g. other mods' custom bots) can have a + // null SpawnProfileData/Id_spawn; guard so this handler can't abort their spawn. + if (bot?.SpawnProfileData?.SpawnParams?.Id_spawn?.ToLower().Contains("hunt") != true) return; var huntManager = bot.gameObject.GetOrAddComponent();