iutils: tick() no longer endlessly loops if logged out

This commit is contained in:
illumineawake 2021-08-20 09:43:31 +10:00
parent 3d994f0d4a
commit 616ef2e336
5 changed files with 6 additions and 2 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.4.5"
version = "4.4.6"
project.extra["PluginName"] = "iUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -109,6 +109,10 @@ public class Game {
}
public void tick() {
if (client.getGameState() == GameState.LOGIN_SCREEN || client.getGameState() == GameState.LOGIN_SCREEN_AUTHENTICATOR) {
return;
}
long start = client().getTickCount();
while (client.getTickCount() == start) {

File diff suppressed because one or more lines are too long