Skip to content

Commit e3e3d4d

Browse files
fix {fromAscii} placeholder
1 parent 1edfb73 commit e3e3d4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/gregtechceu/gtceu/api/placeholder/MultiLineComponent.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public static MultiLineComponent of(Component c) {
2929
return new MultiLineComponent(List.of(c.copy()));
3030
}
3131

32+
public static MultiLineComponent literal(char c) {
33+
return MultiLineComponent.of(Component.literal(String.valueOf(c)));
34+
}
35+
3236
public static MultiLineComponent literal(String s) {
3337
return MultiLineComponent.of(Component.literal(s));
3438
}

0 commit comments

Comments
 (0)