We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de7ce0 commit 424f3e5Copy full SHA for 424f3e5
osrs/interfaces/login/login.simba
@@ -605,7 +605,10 @@ begin
605
end;
606
607
if (profile.Worlds.Length > 0) and not profile.Worlds.Contains(LoginWorldSwitcher.GetCurrent()) then
608
- LoginWorldSwitcher.Switch(profile.Worlds.Random());
+ begin
609
+ if not LoginWorldSwitcher.Switch(profile.Worlds.Random()) then
610
+ raise GetDebugLn('Login', 'Failed to switch to a valid world from the profile list.');
611
+ end;
612
613
if not Self.HandleMessage(Self.GetMessage(), profile.Username, profile.Password) then Exit;
614
Sleep(600, 1200);
0 commit comments