mirror of
https://github.com/djdevin/recnet-plugin.git
synced 2026-09-08 14:41:30 -07:00
fix room loading + metadata changes allowed
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user