From b399ed1ed6931b0ac798b426492e912255146fae Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 3 May 2020 18:01:56 -0400 Subject: [PATCH] cleanup --- core/src/mindustry/ui/Links.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/ui/Links.java b/core/src/mindustry/ui/Links.java index 09f26e78f5..ea35192d9c 100644 --- a/core/src/mindustry/ui/Links.java +++ b/core/src/mindustry/ui/Links.java @@ -42,12 +42,10 @@ public class Links{ public LinkEntry(String name, String link, Drawable icon, Color color){ this.name = name; this.color = color; - this.description = Core.bundle.getNotNull("link." + name + ".description"); + this.description = Core.bundle.get("link." + name + ".description", ""); this.link = link; this.icon = icon; - - String title = Core.bundle.getOrNull("link." + name + ".title"); - this.title = title != null ? title : Strings.capitalize(name.replace("-", " ")); + this.title = Core.bundle.get("link." + name + ".title", Strings.capitalize(name.replace("-", " "))); } } }