|
String name = toolMaterial.name().toLowerCase().replaceAll("tools?|materials?|(battle)?(sword|axe|hoe|pick(axe)?|shovel|hammer)", "").replaceAll("[_|:]+", " ").trim(); |
This blob of code causes exception in Turkish OSs because it will lower I to ı, causing errors like "ıron_axe not found". This can easily be fixed by using English culture.