Make the AFK kicker more lenient

This commit is contained in:
Sam 2018-09-17 01:22:14 +01:00 committed by Alexander Meech
parent 9caf91d429
commit 397bcf709f

View File

@ -70,7 +70,7 @@ public class AFKManager extends MiniClientPlugin<AFKData>
@EventHandler @EventHandler
public void updateAFK(UpdateEvent event) public void updateAFK(UpdateEvent event)
{ {
if (event.getType() != UpdateType.SEC || _manager.getGame() == null) if (event.getType() != UpdateType.FAST || _manager.getGame() == null)
{ {
return; return;
} }
@ -95,7 +95,7 @@ public class AFKManager extends MiniClientPlugin<AFKData>
if (location.getWorld().equals(data.Last.getWorld())) if (location.getWorld().equals(data.Last.getWorld()))
{ {
if (UtilMath.offsetSquared(location, data.Last) > 1) if (UtilMath.offsetSquared(location, data.Last) > 0.1)
{ {
data.LastMovement = System.currentTimeMillis(); data.LastMovement = System.currentTimeMillis();
data.Informed = false; data.Informed = false;