From 1e5238cc7059021db63592f8768a6597bc5f79dd Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 16 May 2024 11:09:27 +0100 Subject: [PATCH] Fixed `EasyAssetPatch` not loading --- project/Aki.Custom/Patches/EasyAssetsPatch.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/Aki.Custom/Patches/EasyAssetsPatch.cs b/project/Aki.Custom/Patches/EasyAssetsPatch.cs index c62465c..b8dfd8f 100644 --- a/project/Aki.Custom/Patches/EasyAssetsPatch.cs +++ b/project/Aki.Custom/Patches/EasyAssetsPatch.cs @@ -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; +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()