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 4a0fcb6c5..5e9f5a147 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 @@ -41,8 +41,10 @@ class NanobotsRegenerationFeature(android: MatteryPlayerCapability) : AndroidFea } override fun onHurt(event: LivingHurtEvent) { - ticksPassed = 0 - healTicks = 0 + if (event.amount > 0f) { + ticksPassed = 0 + healTicks = 0 + } } override fun serializeNBT(): CompoundTag {