iutils: tick() no longer endlessly loops if logged out
This commit is contained in:
parent
3d994f0d4a
commit
616ef2e336
|
@ -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"
|
||||
|
|
|
@ -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
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue