0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:30:44 -05:00

Fix quests not updating their status mid-raid

This commit is contained in:
Dev 2024-01-10 11:54:15 +00:00
parent 319ca925f3
commit b82ef6dd30

View File

@ -21,7 +21,7 @@ namespace Aki.SinglePlayer.Patches.Progression
private static void PatchPostfix()
{
var gameWorld = Singleton<GameWorld>.Instance;
if (gameWorld != null)
if (gameWorld == null)
{
Logger.LogDebug($"[MidRaidQuestChangePatch] gameWorld instance was null");
@ -29,7 +29,6 @@ namespace Aki.SinglePlayer.Patches.Progression
}
var player = gameWorld.MainPlayer;
var questController = Traverse.Create(player).Field<AbstractQuestControllerClass>("_questController").Value;
if (questController != null)
{