mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 05:02:34 +00:00
Fix species description
This commit is contained in:
1 parent
ce19751ca2
commit
c005bc02b5
4 files changed
+9
-6
No files matched your search
@@ -49,7 +49,7 @@ public class PageBranchOverview extends PageBranch {
|
||||
|
||||
branchDescription.clear();
|
||||
String desc = branch.getDescription();
|
||||
if (desc.contains("for.genus.bees.")) { // unlocalized
|
||||
if (desc.matches("(\\w+\\.?)+")) { // unlocalized
|
||||
desc = I18N.localise("binniecore.gui.database.branch.noDesc");
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class PageSpeciesOverview extends PageSpecies {
|
||||
String descBody = EnumChatFormatting.ITALIC.toString();
|
||||
String descSig = "";
|
||||
|
||||
if (desc == null || desc.isEmpty() || !desc.matches("(\\w+\\.?)+")) {
|
||||
if (desc == null || desc.isEmpty() || desc.matches("(\\w+\\.?)+")) {
|
||||
descBody += I18N.localise("binniecore.gui.database.species.noDesc");
|
||||
} else {
|
||||
String[] descStrings = desc.split("\\|");
|
||||
|
||||
Reference in new issue
Block a user