From 35d54c282e3610836f45b4af349fa0b5de4ea0b1 Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:09:07 -0700 Subject: [PATCH] fix unload in place (fake stash profile id) --- Patches/UnloadAmmoPatches.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Patches/UnloadAmmoPatches.cs b/Patches/UnloadAmmoPatches.cs index 3775901..118b798 100644 --- a/Patches/UnloadAmmoPatches.cs +++ b/Patches/UnloadAmmoPatches.cs @@ -3,6 +3,7 @@ using EFT.InventoryLogic; using EFT.UI; using HarmonyLib; using SPT.Reflection.Patching; +using SPT.Reflection.Utils; using System; using System.Collections.Generic; using System.Linq; @@ -191,7 +192,9 @@ public static class UnloadAmmoPatches public UnloadAmmoBoxState() { fakeStash = (StashClass)Singleton.Instance.CreateItem("FakeStash", "566abbc34bdc2d92178b4576", null); - fakeController = new(fakeStash, "FakeId", "FakeController", true, EOwnerType.Profile); + + var profile = PatchConstants.BackEndSession.Profile; + fakeController = new(fakeStash, profile.ProfileId, profile.Nickname); } } }