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()