mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 04:50:45 -05:00
fix reloadclientpatch
This commit is contained in:
parent
7fff0596a8
commit
b11eaa8af8
@ -26,19 +26,7 @@ namespace SPT.Debugging.Patches
|
|||||||
"\nMay Cause Unexpected Behaviors inraid")]
|
"\nMay Cause Unexpected Behaviors inraid")]
|
||||||
public static void Reload()
|
public static void Reload()
|
||||||
{
|
{
|
||||||
|
Reflection.Utils.ClientAppUtils.GetMainApp().method_52().HandleExceptions();
|
||||||
var tarkovapp = Reflection.Utils.ClientAppUtils.GetMainApp();
|
|
||||||
GameWorld gameWorld = Singleton<GameWorld>.Instance;
|
|
||||||
if (gameWorld != null && gameWorld.MainPlayer.Location != "hideout")
|
|
||||||
{
|
|
||||||
ConsoleScreen.LogError("You are in raid. Please only use in Mainmenu");
|
|
||||||
return; // return early we dont want to cause errors because we are inraid
|
|
||||||
}
|
|
||||||
else if (gameWorld != null)
|
|
||||||
{
|
|
||||||
tarkovapp.HideoutControllerAccess.UnloadHideout();
|
|
||||||
}
|
|
||||||
tarkovapp.method_49();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
<Reference Include="Comfort.Common" HintPath="..\Shared\Managed\Comfort.dll" Private="False" />
|
<Reference Include="Comfort.Common" HintPath="..\Shared\Managed\Comfort.dll" Private="False" />
|
||||||
<Reference Include="DissonanceVoip" HintPath="..\Shared\Managed\DissonanceVoip.dll" Private="False" />
|
<Reference Include="DissonanceVoip" HintPath="..\Shared\Managed\DissonanceVoip.dll" Private="False" />
|
||||||
<Reference Include="Nlog" HintPath="..\Shared\Managed\NLog.dll" Private="False" />
|
<Reference Include="Nlog" HintPath="..\Shared\Managed\NLog.dll" Private="False" />
|
||||||
|
<Reference Include="Nlog" HintPath="..\Shared\Managed\CommonExtensions.dll" Private="False" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -29,7 +29,7 @@ namespace SPT.Debugging
|
|||||||
//new BTRDebugDataPatch().Enable();
|
//new BTRDebugDataPatch().Enable();
|
||||||
|
|
||||||
//new PMCBotSpawnLocationPatch().Enable();
|
//new PMCBotSpawnLocationPatch().Enable();
|
||||||
//new ReloadClientPatch().Enable();
|
new ReloadClientPatch().Enable();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user