From de6681d00a52b48ffb675110521f739539f19a33 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 24 Oct 2018 10:31:23 -0400 Subject: [PATCH] Added special case for unit.none --- core/assets/bundles/bundle.properties | 1 - core/src/io/anuke/mindustry/world/meta/StatUnit.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 0372edc527..425582106f 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -351,7 +351,6 @@ text.unit.liquidunits=liquid units text.unit.powerunits=power units text.unit.degrees=degrees text.unit.seconds=seconds -text.unit.none= text.unit.items=items text.category.general=General diff --git a/core/src/io/anuke/mindustry/world/meta/StatUnit.java b/core/src/io/anuke/mindustry/world/meta/StatUnit.java index 1ebbee1452..532b7c497f 100644 --- a/core/src/io/anuke/mindustry/world/meta/StatUnit.java +++ b/core/src/io/anuke/mindustry/world/meta/StatUnit.java @@ -21,6 +21,7 @@ public enum StatUnit{ items; public String localized(){ + if(this == none) return ""; return Bundles.get("text.unit." + name().toLowerCase(Locale.ROOT)); } }