We don't need move events if afk interact is disabled.

This commit is contained in:
KHobbits 2013-02-03 05:15:25 +00:00
parent 2f567812d2
commit eea0c9682c

View File

@ -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
@ -870,7 +869,7 @@ public class Settings implements ISettings
{ {
return config.getBoolean("repair-enchanted", true); return config.getBoolean("repair-enchanted", true);
} }
@Override @Override
public boolean allowUnsafeEnchantments() public boolean allowUnsafeEnchantments()
{ {