Skip to content

Commit

Permalink
[F] Nested types patches without enable
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Sep 10, 2024
1 parent d9fc262 commit 39dc6c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AquaMai/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ private void Patch(Type type)
{
MelonLogger.Msg($"> Patching {type}");
HarmonyInstance.PatchAll(type);
foreach (var nested in type.GetNestedTypes())
{
Patch(nested);
}
}

/**
Expand Down Expand Up @@ -56,10 +60,6 @@ private void ApplyPatches()
if (directiveType != null)
{
Patch(directiveType);
foreach (var nested in directiveType.GetNestedTypes())
{
Patch(nested);
}
}
else MelonLogger.Error($"Type not found for {categoryProp.Name}.{settingProp.Name}");
}
Expand Down

0 comments on commit 39dc6c5

Please sign in to comment.