0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Small cleanup of MidRaidQuestChangePatch

This commit is contained in:
Dev 2024-01-04 17:25:56 +00:00
parent 24e820feb5
commit 5fcc904a89

View File

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