This commit is contained in:
GearShocky 2025-03-25 09:23:31 +05:00
parent 79022ddac9
commit 78395e228b

View File

@ -269,7 +269,9 @@ class Enforcer(type: EntityType<Enforcer>, 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()