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

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: SPT-AKI/Modules#48
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
This commit is contained in:
DrakiaXYZ 2024-01-02 13:36:09 +00:00 committed by chomp
parent 9522dd6df7
commit 48622c7ecc

View File

@ -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<IBotGame>.Instance;
gameWorld.LocationId = gameWorld.MainPlayer.Location;
if (gameWorld.BtrController == null)
{