From 0349b2dbee52191f2aca9c958a8dc78f3dce17d4 Mon Sep 17 00:00:00 2001 From: Rwarazor <44152585+Rwarazor@users.noreply.github.com> Date: Sat, 14 Oct 2023 14:23:34 +0300 Subject: [PATCH] Achievements fix (#4) * Fix achievements to actually be disabled during modded runs * Leave AchievementsOn = true for the main screen, so that unlocked characters and cruciball levels can load properly first try * Use [HarmonyPatch] attribute on plugin class, instead of making separate patch class * Fix newline --- Plugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin.cs b/Plugin.cs index 882e939..ddb0972 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -6,13 +6,13 @@ namespace PeglinCore { [BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)] [BepInProcess("Peglin.exe")] + [HarmonyPatch] public class Plugin : BaseUnityPlugin { private readonly Harmony harmony = new Harmony(PluginInfo.PLUGIN_GUID); private void Awake() { - AchievementManager.AchievementsOn = false; harmony.PatchAll(); Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded!"); }