0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Fixed EasyAssetPatch not loading

This commit is contained in:
Dev 2024-05-16 11:09:27 +01:00
parent e14b8b88ae
commit 1e5238cc70

View File

@ -12,8 +12,8 @@ using Aki.Common.Utils;
using Aki.Custom.Models;
using Aki.Custom.Utils;
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using DependencyGraph = DependencyGraph<IEasyBundle>;
using Aki.Reflection.Utils;
namespace Aki.Custom.Patches
{
@ -23,7 +23,7 @@ namespace Aki.Custom.Patches
static EasyAssetsPatch()
{
_bundlesField = typeof(EasyAssets).GetField($"{EasyBundleHelper.Type.Name.ToLowerInvariant()}_0", PatchConstants.PrivateFlags);
_bundlesField = typeof(EasyAssets).GetFields(PatchConstants.PrivateFlags).FirstOrDefault(field => field.FieldType == typeof(EasyAssetHelperClass[]));
}
public EasyAssetsPatch()