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() |             }.build() | ||||||
|     } catch (e: ClassNotFoundException) { |     } catch (e: ClassNotFoundException) { | ||||||
|         object : Screen(translationComponent) { |         object: Screen(translationComponent) { | ||||||
|             override fun isPauseScreen(): Boolean = false |             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) |                 super.renderBackground(poseStack) | ||||||
|                 FontUtil.drawScaled(poseStack!!, |                 FontUtil.drawScaled(poseStack!!, | ||||||
|                     text = "Cloth Config is required for the configuration of snowygui, please install it.", 50.0, 50.0, |                     text = "An appropriate version of the Cloth Config mod is required for the configuration of snowygui.", 16.0, 16.0, | ||||||
|                     color = Colors.WHITE, scaleFactor = 1.85F |                     color = Colors.WHITE, scaleFactor = 0.85F | ||||||
|                 ) |                 ) | ||||||
|             } |             } | ||||||
|             override fun onClose() { minecraft?.screen = configScreenParent } |             override fun onClose() { minecraft?.screen = configScreenParent } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user