Skip to content

Commit

Permalink
Update Targets.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 authored Apr 20, 2023
1 parent 36ff3d4 commit 9a63e5d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@ open class Targets : Element(-46.0, -40.0, 1F, Side(Side.Horizontal.MIDDLE, Side
}

private fun drawFDP2(target: EntityLivingBase) {
val font = fontValue.get()
val additionalWidth = ((font.getStringWidth(target.name) * 1.2).toInt().coerceAtLeast(70) + font.getStringWidth("Name: ") * 1.1 + 7.0).roundToInt()
val healthBarWidth = additionalWidth - (font.getStringWidth("20") * 1.15).roundToInt() - 16

Expand Down

0 comments on commit 9a63e5d

Please sign in to comment.