Use cooldownExpired here as well.

This commit is contained in:
TfT_02 2013-09-22 23:02:56 +02:00
parent 3828f78480
commit 6a3a564bd4

View File

@ -181,8 +181,7 @@ public class RepairManager extends SkillManager {
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
long lastUse = mcMMOPlayer.getLastAnvilUse(anvilType);
// Don't use SkillUtils.cooldownOver() here since that also accounts for the cooldown perks
if ((((lastUse + 3) * Misc.TIME_CONVERSION_FACTOR) >= System.currentTimeMillis()) || !Config.getInstance().getRepairConfirmRequired()) {
if (SkillUtils.cooldownExpired(lastUse, 3) || !Config.getInstance().getRepairConfirmRequired()) {
return true;
}