From c49075ff0db7fb22cd8a33c5a8a045119b12046b Mon Sep 17 00:00:00 2001 From: BalaM314 <71201189+BalaM314@users.noreply.github.com> Date: Tue, 13 Jun 2023 20:07:17 +0530 Subject: [PATCH] =?UTF-8?q?Correctly=20display=20=E2=88=9E=20unit=20cap=20?= =?UTF-8?q?in=20reconstructors=20(#8709)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- core/src/mindustry/world/blocks/units/Reconstructor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/world/blocks/units/Reconstructor.java b/core/src/mindustry/world/blocks/units/Reconstructor.java index 0c8e13be02..77ddf0ae0d 100644 --- a/core/src/mindustry/world/blocks/units/Reconstructor.java +++ b/core/src/mindustry/world/blocks/units/Reconstructor.java @@ -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) ));