mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-10 12:19:57 +00:00
We don't need move events if afk interact is disabled.
This commit is contained in:
parent
2f567812d2
commit
eea0c9682c
|
@ -468,8 +468,8 @@ public class Settings implements ISettings
|
||||||
teleportInvulnerability = _isTeleportInvulnerability();
|
teleportInvulnerability = _isTeleportInvulnerability();
|
||||||
disableItemPickupWhileAfk = _getDisableItemPickupWhileAfk();
|
disableItemPickupWhileAfk = _getDisableItemPickupWhileAfk();
|
||||||
registerBackInListener = _registerBackInListener();
|
registerBackInListener = _registerBackInListener();
|
||||||
cancelAfkOnMove = _cancelAfkOnMove();
|
|
||||||
cancelAfkOnInteract = _cancelAfkOnInteract();
|
cancelAfkOnInteract = _cancelAfkOnInteract();
|
||||||
|
cancelAfkOnMove = _cancelAfkOnMove() && cancelAfkOnInteract;
|
||||||
getFreezeAfkPlayers = _getFreezeAfkPlayers();
|
getFreezeAfkPlayers = _getFreezeAfkPlayers();
|
||||||
itemSpawnBl = _getItemSpawnBlacklist();
|
itemSpawnBl = _getItemSpawnBlacklist();
|
||||||
loginAttackDelay = _getLoginAttackDelay();
|
loginAttackDelay = _getLoginAttackDelay();
|
||||||
|
@ -832,7 +832,6 @@ public class Settings implements ISettings
|
||||||
{
|
{
|
||||||
return config.getBoolean("cancel-afk-on-move", true);
|
return config.getBoolean("cancel-afk-on-move", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean cancelAfkOnInteract;
|
private boolean cancelAfkOnInteract;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue