Regression caused from change in ed642ccf
This commit is contained in:
parent
dc6aa21a91
commit
54cc1ce842
|
@ -292,7 +292,7 @@ public class MaterialUtil {
|
||||||
* @return The name shortened to the max length
|
* @return The name shortened to the max length
|
||||||
*/
|
*/
|
||||||
public static String getShortenedName(String itemName, int maxWidth) {
|
public static String getShortenedName(String itemName, int maxWidth) {
|
||||||
itemName = StringUtil.capitalizeFirstLetter(itemName, '_');
|
itemName = StringUtil.capitalizeFirstLetter(itemName.replace('_', ' '), ' ');
|
||||||
int width = getMinecraftStringWidth(itemName);
|
int width = getMinecraftStringWidth(itemName);
|
||||||
if (width <= maxWidth) {
|
if (width <= maxWidth) {
|
||||||
return itemName;
|
return itemName;
|
||||||
|
|
Loading…
Reference in New Issue