From 39dc6c576a572457ea31829ec23c0bc2c7cac69f Mon Sep 17 00:00:00 2001 From: Clansty Date: Wed, 11 Sep 2024 00:38:13 +0800 Subject: [PATCH] [F] Nested types patches without enable --- AquaMai/Main.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AquaMai/Main.cs b/AquaMai/Main.cs index 24fc01ee..54b3be79 100644 --- a/AquaMai/Main.cs +++ b/AquaMai/Main.cs @@ -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}"); }