mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed a bug where Repair wasn't asking for confirmation
This commit is contained in:
parent
fa34d06341
commit
763cff6898
@ -181,7 +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);
|
||||||
|
|
||||||
if (SkillUtils.cooldownExpired(lastUse, 3) || !Config.getInstance().getRepairConfirmRequired()) {
|
if (!SkillUtils.cooldownExpired(lastUse, 3) || !Config.getInstance().getRepairConfirmRequired()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user