protected override void OnSubModuleLoad() { Config config = ConfigLoader.Instance.Config; ModIntegration.SubModManager.LoadAllValidDependentMods(); if (config.IsRemovalMode) { removalMode = true; return; } removalMode = false; customSpeedModel = new CustomSpawnsCustomSpeedModel(); }
protected override void OnSubModuleLoad() { try { Harmony harmony = new Harmony("com.Questry.CustomSpawns"); harmony.PatchAll(); } catch (Exception e) { ErrorHandler.HandleException(e, "HARMONY PATCHES"); } ModIntegration.SubModManager.LoadAllValidDependentMods(); if (CsSettings.IsRemovalMode) { removalMode = true; return; } removalMode = false; customSpeedModel = new CustomSpawnsCustomSpeedModel(); }