Test if the poseStack argument in the render method of ClickBox.kt is null.

This commit is contained in:
Username404-59 2021-04-11 09:39:38 +02:00
parent 1ce635dbcf
commit f3d291e180
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}