From 48622c7ecc8f6643650192a7e8872dfa22765959 Mon Sep 17 00:00:00 2001 From: DrakiaXYZ Date: Tue, 2 Jan 2024 13:36:09 +0000 Subject: [PATCH] Set gameworld LocationId property (!48) GClass2911 expects gameWorld.LocationId to be set to instantiate the BTRView Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Modules/pulls/48 Co-authored-by: DrakiaXYZ Co-committed-by: DrakiaXYZ --- project/Aki.Debugging/Patches/BtrTestPatch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/Aki.Debugging/Patches/BtrTestPatch.cs b/project/Aki.Debugging/Patches/BtrTestPatch.cs index 2a512d7..4bf1eea 100644 --- a/project/Aki.Debugging/Patches/BtrTestPatch.cs +++ b/project/Aki.Debugging/Patches/BtrTestPatch.cs @@ -10,7 +10,7 @@ namespace Aki.Debugging.Patches { protected override MethodBase GetTargetMethod() { - return typeof(GameWorld).GetMethod(nameof(GameWorld.OnGameStarted)); + return typeof(GameWorld).GetMethod(nameof(GameWorld.OnGameStarted)); } [PatchPostfix] @@ -26,6 +26,7 @@ namespace Aki.Debugging.Patches } var botGame = Singleton.Instance; + gameWorld.LocationId = gameWorld.MainPlayer.Location; if (gameWorld.BtrController == null) {