mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Correctly display ∞ unit cap in reconstructors (#8709)
* Correctly display ∞ in reconstructors
UnitFactory.java uses getStringCap, but Reconstructor uses getCap
this was probably missed in 8cabae1
* might as well fix formatting
same format as UnitFactory.java
This commit is contained in:
parent
dbfd8a3ec1
commit
c49075ff0d
1 changed files with 4 additions and 4 deletions
|
|
@ -67,10 +67,10 @@ public class Reconstructor extends UnitBlock{
|
|||
new Bar(
|
||||
() -> e.unit() == null ? "[lightgray]" + Iconc.cancel :
|
||||
Core.bundle.format("bar.unitcap",
|
||||
Fonts.getUnicodeStr(e.unit().name),
|
||||
e.team.data().countType(e.unit()),
|
||||
Units.getCap(e.team)
|
||||
),
|
||||
Fonts.getUnicodeStr(e.unit().name),
|
||||
e.team.data().countType(e.unit()),
|
||||
Units.getStringCap(e.team)
|
||||
),
|
||||
() -> Pal.power,
|
||||
() -> e.unit() == null ? 0f : (float)e.team.data().countType(e.unit()) / Units.getCap(e.team)
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue