Skip to content

Commit d79a7b1

Browse files
committed
e
1 parent f56409e commit d79a7b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/org/polyfrost/polynametag/client/NametagRenderer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ object NametagRenderer {
9292
//$$ @JvmStatic
9393
//$$ fun drawBackground(
9494
//$$ matrices: OmniMatrixStack,
95+
//#if MC >=1.21.4
96+
//$$ displayName: net.minecraft.network.chat.Component?,
97+
//#else
9598
//$$ displayName: net.minecraft.text.Text?,
99+
//#endif
96100
//$$ ) {
97101
//$$ val displayName = displayName ?: return
98102
//$$ val halfWidth = OmniTextRenderer.width(displayName.string) / 2 + 1.0

0 commit comments

Comments
 (0)