kamilo 7 Author Share Posted November 10, 2019 6 hours ago, HyperCrusher said: The world switcher widget doesn't update the world text until loading is complete, in fact for a brief moment after loading is complete the text is "Loading..." this means we can set a sleepuntil that checks this widgets text, with a timeout that is sizeable public void hopToWorld(int world){ String worldText = "Current world - "; getWorldHopper().hopWorld(world); sleepUntil(() -> getWidgets().getWidget(69).getChild(2).getText().equals(worldText + world), 20000); } good idea seems to work, was running more smoother with this for sure. something else bugged out upon untering this tho so i gotta find that before i fully use this Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.