mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Added special case for unit.none
This commit is contained in:
parent
7632e33975
commit
de6681d00a
@ -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
|
||||
|
@ -21,6 +21,7 @@ public enum StatUnit{
|
||||
items;
|
||||
|
||||
public String localized(){
|
||||
if(this == none) return "";
|
||||
return Bundles.get("text.unit." + name().toLowerCase(Locale.ROOT));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user