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:
parent
319ca925f3
commit
b82ef6dd30
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user