Get rid of dashes from item titles

This commit is contained in:
kuroppoi 2022-08-07 20:39:31 +02:00
parent 408abf3ac7
commit 5fd4cf7fcf

View file

@ -116,7 +116,7 @@ public class GameConfiguration {
// Create an item title if it's missing
if(!config.containsKey("title")) {
String title = WordUtils.capitalize(segments.length > 1 ? segments[1] : segments[0]);
String title = WordUtils.capitalize((segments.length > 1 ? segments[1] : segments[0]).replace("-", " "));
config.put("title", title);
}