diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt index dea627e44..fcd1b372e 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsRegenerationFeature.kt @@ -22,7 +22,7 @@ class NanobotsRegenerationFeature(android: MatteryPlayerCapability) : AndroidFea val waitTime = TICKS_BETWEEN_HEAL.getOrElse(healTicks) { TICKS_BETWEEN_HEAL.last() } if (ticksPassed > waitTime) { - val missingHealth = ply.maxHealth - ply.health + val missingHealth = (ply.maxHealth - ply.health).coerceAtMost(2f + (level * 2f)) val power = ENERGY_PER_HITPOINT * missingHealth val extracted = android.androidEnergy.extractEnergyInner(power, false)