upgrade to Cloth Config v4

This commit is contained in:
octarine-noise
2021-05-22 19:00:54 +02:00
parent 65c9596a14
commit b7bdd438e4
5 changed files with 28 additions and 30 deletions
@@ -19,4 +19,7 @@ import net.minecraft.util.text.TextFormatting.GRAY
//fun textComponent(msg: String, color: TextFormatting = GRAY): StringTextComponent {
// val style = Style().apply { this.color = color }
// return StringTextComponent(msg).apply { this.style = style }
//}
//}
val styleGray = Style.EMPTY.applyFormats(GRAY)
fun String.asText() = StringTextComponent(this).setStyle(styleGray)