File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public partial class AuthPlugin : BasePlugin
3030
3131 [ LibraryImport ( "libstarlight.so" , EntryPoint = "quit_app" ) ]
3232 private static unsafe partial void quit_app ( ) ;
33+ private static bool RanLobbyJoin ;
3334
3435 public override void Load ( )
3536 {
@@ -62,7 +63,10 @@ public override void Load()
6263 adsButton . SetActive ( false ) ;
6364 }
6465
65- coroutines . StartCoroutine ( WaitForLogin ( ) . WrapToIl2Cpp ( ) ) ;
66+ if ( ! RanLobbyJoin )
67+ {
68+ coroutines . StartCoroutine ( WaitForLogin ( ) . WrapToIl2Cpp ( ) ) ;
69+ }
6670 }
6771 } ) ) ;
6872 }
@@ -117,6 +121,7 @@ public System.Collections.IEnumerator WaitForLogin()
117121 ServerManager . Instance . SetRegion ( selectedRegion ) ;
118122 AmongUsClient . Instance . StartCoroutine ( AmongUsClient . Instance . CoFindGameInfoFromCodeAndJoin ( GameCode . GameNameToInt ( code ) ) ) ;
119123 }
124+ RanLobbyJoin = true ;
120125 }
121126
122127 public static GameObject FindInactiveByName ( string name )
You can’t perform that action at this time.
0 commit comments