Address #2 on 1.9.4 :)
This commit is contained in:
parent
9c782f2a4f
commit
ff6ed4e3e1
3 changed files with 4 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ public class ModAutoRepair extends Modifier
|
|||
|
||||
long lastRepairTime = tag.getLong(Lib.TAG_AUTO_REPAIR_COOLDOWN);
|
||||
|
||||
if (autoRepairLevel > 0 && (System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)))
|
||||
if (autoRepairLevel > 0 && (System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && !player.isSwingInProgress)
|
||||
{
|
||||
ToolHelper.healTool(iterStack, autoRepairLevel, player);
|
||||
tag.setLong(Lib.TAG_AUTO_REPAIR_COOLDOWN, System.currentTimeMillis());
|
||||
|
|
|
|||
Loading…
Reference in a new issue