Re-use code

Signed-off-by: Etzelia <etzelia@hotmail.com>
grief
Etzelia 2020-07-29 11:41:44 -05:00
parent aa6c0be984
commit 5f19f7d026
No known key found for this signature in database
GPG Key ID: 3CAEB74806C4ADE5
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ public enum Lang {
}
public static String getMaterialName(Material material) {
String name = material.name();
String name = getMaterialKey(material);
name = name.replaceAll("_", " ");
name = WordUtils.capitalize(name.toLowerCase());
name = WordUtils.capitalize(name);
return name;
}