mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-17 19:15:24 +00:00
Code cleanup
This commit is contained in:
1 parent
c005bc02b5
commit
d30f682523
2 files changed
+2
-2
No files matched your search
@@ -49,7 +49,7 @@ public class PageBranchOverview extends PageBranch {
|
||||
|
||||
branchDescription.clear();
|
||||
String desc = branch.getDescription();
|
||||
if (desc.matches("(\\w+\\.?)+")) { // unlocalized
|
||||
if (desc == null || desc.isEmpty() || desc.matches("(\\w+\\.?)+")) { // unlocalized
|
||||
desc = I18N.localise("binniecore.gui.database.branch.noDesc");
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class PagePlanksOverview extends PageAbstract<ItemStack> {
|
||||
|
||||
String descBody = EnumChatFormatting.ITALIC.toString();
|
||||
String descSig = "";
|
||||
if (desc == null || desc.length() == 0 || desc.matches("(\\w+\\.?)+")) {
|
||||
if (desc == null || desc.isEmpty() || desc.matches("(\\w+\\.?)+")) {
|
||||
descBody += I18N.localise("binniecore.gui.database.nodescription");
|
||||
} else {
|
||||
String[] descStrings = desc.split("\\|");
|
||||
|
||||
Reference in new issue
Block a user