Gracious error with missing link description keys.

This commit is contained in:
TsjipTsjip
2019-12-11 14:03:10 +01:00
parent aeb6e6498e
commit ff5a470560

View File

@@ -38,7 +38,8 @@ public class Links{
public LinkEntry(String name, String link, Color color){
this.name = name;
this.color = color;
this.description = Core.bundle.getNotNull("link." + name + ".description");
String desc = Core.bundle.getOrNull("link." + name + ".description");
this.description = desc != null ? desc : "link." + name + ".description";
this.link = link;
String title = Core.bundle.getOrNull("link." + name + ".title");