From 9d052dcc11cacd326e488cdbd4c3b7c062348222 Mon Sep 17 00:00:00 2001 From: XxXAdvisaryXxX Date: Thu, 30 Apr 2026 13:29:41 -0700 Subject: [PATCH] Add sleep duration in world fetching loop Super Small Sleep to allow ``Word.Bounds`` to be cached while scrollbar is not moving. Before it was just too fast and would mis-cache ``World.Bounds`` and would click and hop to wrong world. When it did that, ``Self.WaitSwitch(next) then Exit`` wasn't working because ``self.World <> next``. The small sleep made it cache the right position and hop to the correct ``next`` world. --- osrs/interfaces/gametabs/worldswitcher.simba | 1 + 1 file changed, 1 insertion(+) diff --git a/osrs/interfaces/gametabs/worldswitcher.simba b/osrs/interfaces/gametabs/worldswitcher.simba index e8d735be..e83764ea 100644 --- a/osrs/interfaces/gametabs/worldswitcher.simba +++ b/osrs/interfaces/gametabs/worldswitcher.simba @@ -379,6 +379,7 @@ begin timeout.Start(20 * ONE_SECOND); repeat + Sleep(20,40); available := Self.GetWorlds(); if available = [] then Exit;