mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06: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);
|
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||||
long lastUse = mcMMOPlayer.getLastAnvilUse(anvilType);
|
long lastUse = mcMMOPlayer.getLastAnvilUse(anvilType);
|
||||||
|
|
||||||
// Don't use SkillUtils.cooldownOver() here since that also accounts for the cooldown perks
|
if (SkillUtils.cooldownExpired(lastUse, 3) || !Config.getInstance().getRepairConfirmRequired()) {
|
||||||
if ((((lastUse + 3) * Misc.TIME_CONVERSION_FACTOR) >= System.currentTimeMillis()) || !Config.getInstance().getRepairConfirmRequired()) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user