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:
parent
e14b8b88ae
commit
1e5238cc70
@ -12,8 +12,8 @@ using Aki.Common.Utils;
|
|||||||
using Aki.Custom.Models;
|
using Aki.Custom.Models;
|
||||||
using Aki.Custom.Utils;
|
using Aki.Custom.Utils;
|
||||||
using Aki.Reflection.Patching;
|
using Aki.Reflection.Patching;
|
||||||
using Aki.Reflection.Utils;
|
|
||||||
using DependencyGraph = DependencyGraph<IEasyBundle>;
|
using DependencyGraph = DependencyGraph<IEasyBundle>;
|
||||||
|
using Aki.Reflection.Utils;
|
||||||
|
|
||||||
namespace Aki.Custom.Patches
|
namespace Aki.Custom.Patches
|
||||||
{
|
{
|
||||||
@ -23,7 +23,7 @@ namespace Aki.Custom.Patches
|
|||||||
|
|
||||||
static EasyAssetsPatch()
|
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()
|
public EasyAssetsPatch()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user