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 )