mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -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:
parent
9522dd6df7
commit
48622c7ecc
@ -10,7 +10,7 @@ namespace Aki.Debugging.Patches
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
return typeof(GameWorld).GetMethod(nameof(GameWorld.OnGameStarted));
|
return typeof(GameWorld).GetMethod(nameof(GameWorld.OnGameStarted));
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
@ -26,6 +26,7 @@ namespace Aki.Debugging.Patches
|
|||||||
}
|
}
|
||||||
|
|
||||||
var botGame = Singleton<IBotGame>.Instance;
|
var botGame = Singleton<IBotGame>.Instance;
|
||||||
|
gameWorld.LocationId = gameWorld.MainPlayer.Location;
|
||||||
|
|
||||||
if (gameWorld.BtrController == null)
|
if (gameWorld.BtrController == null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user