From 04b71b7cc88bce9e94780fe3ef688601e210af51 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Fri, 11 Oct 2024 21:00:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D1=89=D0=B8=D1=82=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=82=20=D0=BC=D0=B3=D0=BD=D0=BE=D0=B2=D0=B5=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D1=81=D0=B4=D1=83=D0=B2=D0=B0=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B1=D0=BE=D1=82=D0=BE=D0=B2=20=D0=BF=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D1=8F=D0=BD=D0=BD=D1=8B=D0=BC=20=D1=83=D1=80=D0=BE?= =?UTF-8?q?=D0=BD=D0=BE=D0=BC=20(=D0=BA=D0=B0=D0=BA=D1=82=D1=83=D1=81,=20?= =?UTF-8?q?=D0=BC=D0=B0=D0=B3=D0=BC=D0=B0=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dbotthepony/mc/otm/android/feature/NanobotsArmorFeature.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsArmorFeature.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsArmorFeature.kt index 512117f6b..820b2c566 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsArmorFeature.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NanobotsArmorFeature.kt @@ -3,6 +3,7 @@ package ru.dbotthepony.mc.otm.android.feature import net.minecraft.core.HolderLookup import net.minecraft.nbt.CompoundTag import net.minecraft.server.level.ServerPlayer +import net.minecraft.tags.DamageTypeTags import net.neoforged.neoforge.event.entity.living.LivingIncomingDamageEvent import ru.dbotthepony.kommons.util.getValue import ru.dbotthepony.kommons.util.setValue @@ -44,6 +45,8 @@ class NanobotsArmorFeature(android: MatteryPlayer) : AndroidFeature(AndroidFeatu } override fun onHurt(event: LivingIncomingDamageEvent) { + if (ply.invulnerableTime > 10 && !event.source.`is`(DamageTypeTags.BYPASSES_COOLDOWN)) return; + ticksPassed = 0 if (!event.source.isBypassArmor && layers > 0) {