about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/Menu
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-05-25 13:13:12 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-05-25 13:13:12 -0400
commitfc2e21e429de7906652142f945e2105ab828dbe6 (patch)
tree4296a329c95835d98d648e027b4aad53f404181c /AnodyneArchipelago/Menu
parent189fcfc1087764961e61c470ffea642ff46d164d (diff)
downloadanodyne-archipelago-fc2e21e429de7906652142f945e2105ab828dbe6.tar.gz
anodyne-archipelago-fc2e21e429de7906652142f945e2105ab828dbe6.tar.bz2
anodyne-archipelago-fc2e21e429de7906652142f945e2105ab828dbe6.zip
Disconnect when returning to main menu
Diffstat (limited to 'AnodyneArchipelago/Menu')
-rw-r--r--AnodyneArchipelago/Menu/MenuState.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/AnodyneArchipelago/Menu/MenuState.cs b/AnodyneArchipelago/Menu/MenuState.cs index cabb94b..898eb94 100644 --- a/AnodyneArchipelago/Menu/MenuState.cs +++ b/AnodyneArchipelago/Menu/MenuState.cs
@@ -38,6 +38,12 @@ namespace AnodyneArchipelago.Menu
38 38
39 public override void Create() 39 public override void Create()
40 { 40 {
41 if (Plugin.ArchipelagoManager != null)
42 {
43 Plugin.ArchipelagoManager.Disconnect();
44 Plugin.ArchipelagoManager = null;
45 }
46
41 _selector = new(); 47 _selector = new();
42 _selector.Play("enabledRight"); 48 _selector.Play("enabledRight");
43 49