mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 14:30:45 -05:00
Fixed post-raid json serialization error
This commit is contained in:
parent
22bd973bb5
commit
c2271b0c0e
@ -3,7 +3,9 @@ using HarmonyLib;
|
||||
using SPT.Reflection.Patching;
|
||||
using System.Reflection;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using SPT.Common.Http;
|
||||
using System;
|
||||
|
||||
|
||||
namespace SPT.SinglePlayer.Patches.ScavMode
|
||||
@ -22,7 +24,8 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
||||
[PatchPrefix]
|
||||
public static void PatchPrefix(LocalGame __instance)
|
||||
{
|
||||
GetProfileAtEndOfRaidPatch.Profile = __instance.Profile_0.ToJson();
|
||||
//var test = new GClass1962(__instance.Profile_0, GClass1971.Instance);
|
||||
//Profile = test.ToUnparsedData([]);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
@ -54,8 +54,8 @@ namespace SPT.SinglePlayer
|
||||
new EnableRefIntermScreenPatch().Enable();
|
||||
new EnablePlayerScavPatch().Enable();
|
||||
new ScavFoundInRaidPatch().Enable();
|
||||
new GetProfileAtEndOfRaidPatch().Enable();
|
||||
new FixSavageInventoryScreenPatch().Enable();
|
||||
// new GetProfileAtEndOfRaidPatch().Enable(); //TODO BROKEN IN 15.5 - FIX OR REMOVE
|
||||
//new FixSavageInventoryScreenPatch().Enable(); //TODO BROKEN IN 15.5 - FIX OR REMOVE
|
||||
//new InsuranceScreenPatch().Enable();
|
||||
new RemoveStashUpgradeLabelPatch().Enable();
|
||||
new RemoveClothingItemExternalObtainLabelPatch().Enable();
|
||||
|
Loading…
x
Reference in New Issue
Block a user