From b4d64b0d96dd4bf0bc016d889389a8264898461c Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 8 Jun 2021 19:54:06 +0200 Subject: [PATCH] Make the poseStack argument in ConfigScreen.kt not null --- .../kotlin/fr/username404/snowygui/config/ConfigScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt index 82d538c..b7d031c 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt @@ -96,9 +96,9 @@ val SnowyConfigScreen: Screen get() { } catch (e: ClassNotFoundException) { object: Screen(translationComponent) { override fun isPauseScreen(): Boolean = false - override fun render(poseStack: PoseStack?, i: Int, j: Int, f: Float) { + override fun render(poseStack: PoseStack, i: Int, j: Int, f: Float) { super.renderBackground(poseStack) - FontUtil.drawScaled(poseStack!!, + FontUtil.drawScaled(poseStack, text = "An appropriate version of the Cloth Config mod is required for the configuration of snowygui.", 16.0, 16.0, color = Colors.WHITE, scaleFactor = 0.85F )