Falcon 0 Posted February 1, 2023 Okay so my issue is that I am trying to make the script wait until it has logged in since it is trying to get some data about the local player afterwards but it seems to start running way before it has fully loaded, do you guys have any clue what I am doing wrong or have any suggestions? Sleep.sleepTicks(2); Sleep.sleepUntil(() -> Client.getGameState() == GameState.LOGGED_IN && Client.getGameState() != GameState.GAME_LOADING && Client.getGameState() != GameState.LOADING, 1000); log("After sleepUntil"); // This is running a long time before it should. Sleep.sleepTicks(2);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.