fix: name tag offset

This commit is contained in:
xtex 2023-07-02 11:44:08 +08:00
parent ed77d13eeb
commit e78a9dda4d
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -102,6 +102,6 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
override fun getTypeName(): Component = shape.name.takeIf { it.isNotEmpty() }?.let { Component.literal(it) }
?: super.getTypeName()
override fun getNameTagOffsetY() = super.getNameTagOffsetY() - BOUNDING_HEIGHT * (1.3f - shape.scaleY)
override fun getNameTagOffsetY() = super.getNameTagOffsetY() - (BOUNDING_HEIGHT * (1.2f - shape.scaleY))
}