From e78a9dda4de8d42787c58ee1c561960317e62bde Mon Sep 17 00:00:00 2001 From: xtex Date: Sun, 2 Jul 2023 11:44:08 +0800 Subject: [PATCH] fix: name tag offset --- .../kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt index 7038ba8..0fa33e2 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt @@ -102,6 +102,6 @@ class ProjectedPersonEntity(entityType: EntityType, 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)) } \ No newline at end of file