[F] Nested types patches without enable
Build AquaMai / build (SDEZ141) (push) Has been cancelled Details
Build AquaMai / build (SDGA145) (push) Has been cancelled Details

pull/55/head
Clansty 2024-09-11 00:38:13 +08:00
parent d9fc262003
commit 39dc6c576a
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 4 additions and 4 deletions

View File

@ -25,6 +25,10 @@ namespace AquaMai
{
MelonLogger.Msg($"> Patching {type}");
HarmonyInstance.PatchAll(type);
foreach (var nested in type.GetNestedTypes())
{
Patch(nested);
}
}
/**
@ -56,10 +60,6 @@ namespace AquaMai
if (directiveType != null)
{
Patch(directiveType);
foreach (var nested in directiveType.GetNestedTypes())
{
Patch(nested);
}
}
else MelonLogger.Error($"Type not found for {categoryProp.Name}.{settingProp.Name}");
}