From 78395e228bf902ccf284baad5c5702f5cec906fd Mon Sep 17 00:00:00 2001 From: GearShocky Date: Tue, 25 Mar 2025 09:23:31 +0500 Subject: [PATCH] =?UTF-8?q?=D1=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt index 52f9a61ea..2b2b15835 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/entity/Enforcer.kt @@ -269,7 +269,9 @@ class Enforcer(type: EntityType, level: Level) : Monster(type,level) { return } - mob.playSound(MSoundEvents.ENFORCER_CHARGE, 1.0f, 1.0f) + if (chargeTime == windupTime) { + mob.playSound(MSoundEvents.ENFORCER_CHARGE, 1.0f, 1.0f) + } val dir = chargeDir ?: return mob.yRot = Math.toDegrees(-Mth.atan2(dir.x, dir.z)).toFloat()