Fix the text displayed when cloth config is not present
This commit is contained in:
		
							parent
							
								
									c69fd56838
								
							
						
					
					
						commit
						8c768fadef
					
				| @ -30,13 +30,13 @@ val SnowyConfigScreen: Screen get() { | ||||
|                 } | ||||
|             }.build() | ||||
|     } catch (e: ClassNotFoundException) { | ||||
|         object : Screen(translationComponent) { | ||||
|         object: Screen(translationComponent) { | ||||
|             override fun isPauseScreen(): Boolean = false | ||||
|             override fun render(poseStack: PoseStack?, i: Int, j: Int, f: Float) { | ||||
|                 super.renderBackground(poseStack) | ||||
|                 FontUtil.drawScaled(poseStack!!, | ||||
|                     text = "Cloth Config is required for the configuration of snowygui, please install it.", 50.0, 50.0, | ||||
|                     color = Colors.WHITE, scaleFactor = 1.85F | ||||
|                     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 | ||||
|                 ) | ||||
|             } | ||||
|             override fun onClose() { minecraft?.screen = configScreenParent } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user