We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f56409e commit d79a7b1Copy full SHA for d79a7b1
src/main/kotlin/org/polyfrost/polynametag/client/NametagRenderer.kt
@@ -92,7 +92,11 @@ object NametagRenderer {
92
//$$ @JvmStatic
93
//$$ fun drawBackground(
94
//$$ matrices: OmniMatrixStack,
95
+ //#if MC >=1.21.4
96
+ //$$ displayName: net.minecraft.network.chat.Component?,
97
+ //#else
98
//$$ displayName: net.minecraft.text.Text?,
99
+ //#endif
100
//$$ ) {
101
//$$ val displayName = displayName ?: return
102
//$$ val halfWidth = OmniTextRenderer.width(displayName.string) / 2 + 1.0
0 commit comments