parent
7b867d0069
commit
6643997304
1 changed files with 3 additions and 1 deletions
|
@ -28,7 +28,9 @@ import java.util.List;
|
||||||
public class TextComponentMessageFormatHandler {
|
public class TextComponentMessageFormatHandler {
|
||||||
public static int handle(final TextComponentTranslation parent, final List<ITextComponent> children, final Object[] formatArgs, final String format) {
|
public static int handle(final TextComponentTranslation parent, final List<ITextComponent> children, final Object[] formatArgs, final String format) {
|
||||||
try {
|
try {
|
||||||
children.add(new TextComponentString(ForgeI18n.parseFormat(format, formatArgs)));
|
TextComponentString component = new TextComponentString(ForgeI18n.parseFormat(format, formatArgs));
|
||||||
|
component.getStyle().setParentStyle(parent.getStyle());
|
||||||
|
children.add(component);
|
||||||
return format.length();
|
return format.length();
|
||||||
} catch (IllegalArgumentException ex) {
|
} catch (IllegalArgumentException ex) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue