mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fix lexicon word count
This commit is contained in:
1 file changed
+2
-2
@@ -167,14 +167,14 @@ public class CommonProxy {
|
||||
if(page instanceof ITwoNamedPage)
|
||||
words += countWords(((ITwoNamedPage) page).getSecondUnlocalizedName());
|
||||
}
|
||||
Botania.LOGGER.info("The Lexica Botania has %d words.", words);
|
||||
Botania.LOGGER.info("The Lexica Botania has {} words.", words);
|
||||
|
||||
registerDefaultEntityBlacklist();
|
||||
}
|
||||
|
||||
private int countWords(String s) {
|
||||
String s1 = I18n.translateToLocal(s);
|
||||
return s1.split(" ").length;
|
||||
return s1.split("\\s+").length;
|
||||
}
|
||||
|
||||
private void registerDefaultEntityBlacklist() {
|
||||
|
||||
Reference in new issue
Block a user