Cleanup
This commit is contained in:
parent
b7d346b29c
commit
c29ad62d96
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ public class ModAutoRepair extends Modifier
|
||||||
}
|
}
|
||||||
|
|
||||||
long lastRepairTime = tag.getLong(Lib.TAG_AUTO_REPAIR_COOLDOWN);
|
long lastRepairTime = tag.getLong(Lib.TAG_AUTO_REPAIR_COOLDOWN);
|
||||||
// Calculates that the last repair time stored minus the current time is less than or equal to 30 seconds divided by auto-repair level
|
|
||||||
if ((System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && autoRepairLevel > 0)
|
if ((System.currentTimeMillis() - lastRepairTime) >= (getRepairCooldown(player)) && autoRepairLevel > 0)
|
||||||
{
|
{
|
||||||
ToolHelper.healTool(iterStack, autoRepairLevel, player);
|
ToolHelper.healTool(iterStack, autoRepairLevel, player);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue