Added special case for unit.none
This commit is contained in:
@@ -351,7 +351,6 @@ text.unit.liquidunits=liquid units
|
|||||||
text.unit.powerunits=power units
|
text.unit.powerunits=power units
|
||||||
text.unit.degrees=degrees
|
text.unit.degrees=degrees
|
||||||
text.unit.seconds=seconds
|
text.unit.seconds=seconds
|
||||||
text.unit.none=
|
|
||||||
text.unit.items=items
|
text.unit.items=items
|
||||||
|
|
||||||
text.category.general=General
|
text.category.general=General
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public enum StatUnit{
|
|||||||
items;
|
items;
|
||||||
|
|
||||||
public String localized(){
|
public String localized(){
|
||||||
|
if(this == none) return "";
|
||||||
return Bundles.get("text.unit." + name().toLowerCase(Locale.ROOT));
|
return Bundles.get("text.unit." + name().toLowerCase(Locale.ROOT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user