Make the AFK kicker more lenient
This commit is contained in:
parent
9caf91d429
commit
397bcf709f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user