aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index ce58f983e..97bba3099 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -431,7 +431,7 @@ object RenderUtils {
GlStateManager.pushMatrix()
val resolution = ScaledResolution(Minecraft.getMinecraft())
- val renderer = Minecraft.getMinecraft().renderManager.fontRenderer
+ val renderer = Minecraft.getMinecraft().renderManager.fontRenderer ?: return
val offsetX = (200 - renderer.getStringWidth(textToRender.removeColor())) / 2