Sigils descriptions now correctly support formatting
This commit is contained in:
parent
91f88b846f
commit
44a5063f0b
|
@ -58,7 +58,7 @@ public class ItemSigilBase extends ItemBindable implements ISigil {
|
|||
public void addInformation(ItemStack stack, EntityPlayer player, List tooltip, boolean advanced) {
|
||||
|
||||
if (StatCollector.canTranslate(tooltipBase + "desc"))
|
||||
tooltip.add(TextHelper.localize(tooltipBase + "desc"));
|
||||
tooltip.add(TextHelper.localizeEffect(tooltipBase + "desc"));
|
||||
|
||||
super.addInformation(stack, player, tooltip, advanced);
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class TextHelper {
|
|||
}
|
||||
|
||||
public static String localizeEffect(String input, Object... format) {
|
||||
return localize(input.replaceAll("&", "\u00A7"), format);
|
||||
return getFormattedText(localize(input, format));
|
||||
}
|
||||
|
||||
public static String[] localizeAll(String[] input) {
|
||||
|
|
Loading…
Reference in a new issue