Skip to content

Commit 1f7906f

Browse files
fix mapping issues
I accidentally used yarn instead of MCP
1 parent a22f236 commit 1f7906f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/kotlin/gg/essential/universal/utils/textUtils.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import net.minecraft.util.IChatComponent
1616
//$$
1717
//$$ private fun formatString(style: Style): String = buildString {
1818
//$$ style.color?.let(colorToFormatChar::get)?.let(::append)
19-
//$$ if (style.isBold) append("§l")
20-
//$$ if (style.isItalic) append("§o")
21-
//$$ if (style.isUnderlined) append("§n")
22-
//$$ if (style.isObfuscated) append("§k")
23-
//$$ if (style.isStrikethrough) append("§m")
19+
//$$ if (style.bold) append("§l")
20+
//$$ if (style.italic) append("§o")
21+
//$$ if (style.underlined) append("§n")
22+
//$$ if (style.obfuscated) append("§k")
23+
//$$ if (style.strikethrough) append("§m")
2424
//$$ }
2525
//#endif
2626

@@ -36,7 +36,7 @@ fun IChatComponent.toFormattedString(): String {
3636
//#if MC>=11600
3737
//$$ return buildString {
3838
//$$ append(formatString(style))
39-
//$$ this@toFormattedString.visit<String> {
39+
//$$ this@toFormattedString.func_230533_b_ <String> {
4040
//$$ append(it)
4141
//$$ Optional.empty()
4242
//$$ }

0 commit comments

Comments
 (0)