Test if the poseStack argument in the render method of ClickBox.kt is null.
This commit is contained in:
parent
1ce635dbcf
commit
f3d291e180
|
@ -24,7 +24,7 @@ class ClickBox(x: Double, y: Double, private val name: TranslatableComponent? =
|
|||
RenderSystem.enableTexture()
|
||||
RenderSystem.disableBlend()
|
||||
|
||||
if (name != null) {
|
||||
if ((name != null) && (poseStack != null)) {
|
||||
Minecraft.getInstance().font.draw(poseStack, name.string, x.toFloat() + 2, y.toFloat() + 1.5F, TransparentColor)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue