From 6a3a564bd49ec4961a874e4e417ace57dea2c17a Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sun, 22 Sep 2013 23:02:56 +0200 Subject: [PATCH] Use cooldownExpired here as well. --- .../java/com/gmail/nossr50/skills/repair/RepairManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java index 5502a402d..c35a8bb49 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java @@ -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; }