mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
ASTExtension: Fixed ClearAvatar patch not being prefix
This commit is contained in:
parent
b37d49647e
commit
6930807665
6 changed files with 54 additions and 58 deletions
|
@ -65,8 +65,7 @@ public class PropLoadingHexagonMod : MelonMod
|
|||
);
|
||||
|
||||
LoadAssetBundle();
|
||||
|
||||
InitializeIntegration("TheClapper", Integrations.TheClapperIntegration.Init);
|
||||
//HandleIntegrations();
|
||||
}
|
||||
|
||||
public override void OnUpdate()
|
||||
|
@ -100,18 +99,19 @@ public class PropLoadingHexagonMod : MelonMod
|
|||
|
||||
#endregion Melon Events
|
||||
|
||||
#region Integrations
|
||||
|
||||
private void InitializeIntegration(string modName, Action integrationAction)
|
||||
{
|
||||
if (RegisteredMelons.All(it => it.Info.Name != modName))
|
||||
return;
|
||||
|
||||
LoggerInstance.Msg($"Initializing {modName} integration.");
|
||||
integrationAction.Invoke();
|
||||
}
|
||||
|
||||
#endregion Integrations
|
||||
// #region Integrations
|
||||
//
|
||||
// [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
// private void HandleIntegrations()
|
||||
// {
|
||||
// if (RegisteredMelons.Any(it => it.Info.Name == "TheClapper"))
|
||||
// {
|
||||
// LoggerInstance.Msg("Initializing TheClapper integration.");
|
||||
// Integrations.TheClapperIntegration.Init();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// #endregion Integrations
|
||||
|
||||
#region Asset Bundle Loading
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue