mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 06:30:43 -05:00
Fix quests not updating their status mid-raid
This commit is contained in:
parent
319ca925f3
commit
b82ef6dd30
@ -21,7 +21,7 @@ namespace Aki.SinglePlayer.Patches.Progression
|
|||||||
private static void PatchPostfix()
|
private static void PatchPostfix()
|
||||||
{
|
{
|
||||||
var gameWorld = Singleton<GameWorld>.Instance;
|
var gameWorld = Singleton<GameWorld>.Instance;
|
||||||
if (gameWorld != null)
|
if (gameWorld == null)
|
||||||
{
|
{
|
||||||
Logger.LogDebug($"[MidRaidQuestChangePatch] gameWorld instance was null");
|
Logger.LogDebug($"[MidRaidQuestChangePatch] gameWorld instance was null");
|
||||||
|
|
||||||
@ -29,7 +29,6 @@ namespace Aki.SinglePlayer.Patches.Progression
|
|||||||
}
|
}
|
||||||
|
|
||||||
var player = gameWorld.MainPlayer;
|
var player = gameWorld.MainPlayer;
|
||||||
|
|
||||||
var questController = Traverse.Create(player).Field<AbstractQuestControllerClass>("_questController").Value;
|
var questController = Traverse.Create(player).Field<AbstractQuestControllerClass>("_questController").Value;
|
||||||
if (questController != null)
|
if (questController != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user