Make the poseStack argument in ConfigScreen.kt not null

This commit is contained in:
Username404 2021-06-08 19:54:06 +02:00
parent 7355635daa
commit b4d64b0d96
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

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