mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-21 20:56:45 +01:00
Use cooldownExpired here as well.
This commit is contained in:
parent
3828f78480
commit
6a3a564bd4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user