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
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public class AFKManager extends MiniClientPlugin<AFKData>
@EventHandler
public void updateAFK(UpdateEvent event)
{
if (event.getType() != UpdateType.SEC || _manager.getGame() == null)
if (event.getType() != UpdateType.FAST || _manager.getGame() == null)
{
return;
}
@ -95,7 +95,7 @@ public class AFKManager extends MiniClientPlugin<AFKData>
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.Informed = false;