From f56ed0d8de732146d5db7c81caff9ba2a3a87418 Mon Sep 17 00:00:00 2001 From: Lapis Date: Thu, 18 Jun 2026 09:22:48 -0400 Subject: [PATCH] fix room loading + metadata changes allowed --- CannedNet.Client/Patches/PromisePatch.cs | 13 +++++++++++++ CannedNet.Client/Plugin.cs | 11 +++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 CannedNet.Client/Patches/PromisePatch.cs diff --git a/CannedNet.Client/Patches/PromisePatch.cs b/CannedNet.Client/Patches/PromisePatch.cs new file mode 100644 index 0000000..45ca6a2 --- /dev/null +++ b/CannedNet.Client/Patches/PromisePatch.cs @@ -0,0 +1,13 @@ +using HarmonyLib; + +[HarmonyPatch(typeof(JAPJPGNBMNM), "JOKECJKBJGD")] +public static class PromisePatch +{ + public static bool Prefix(out HPHDJAFFHCN __result) + { + var result = JAPJPGNBMNM.AOFCCEACNNA.JGIHNLEFJEL(); + var promise = HAAHJPGNIMD.NMOOLKAJDOC(result); + __result = promise; + return false; + } +} diff --git a/CannedNet.Client/Plugin.cs b/CannedNet.Client/Plugin.cs index 81b6f45..97a828d 100644 --- a/CannedNet.Client/Plugin.cs +++ b/CannedNet.Client/Plugin.cs @@ -46,11 +46,14 @@ public class Plugin : BasePlugin private void OnSceneLoaded(Scene scene, LoadSceneMode mode) { - var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]"); - if (cheatMgr != null) + if (scene.name != "TitleScreen") { - GameObject.Destroy(cheatMgr); - Log.LogInfo("cheatmanager destroyed"); + var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]"); + if (cheatMgr != null) + { + GameObject.Destroy(cheatMgr); + Log.LogInfo("cheatmanager destroyed"); + } } } }