From 915c8090c79e2021e9df095b8da2e3cb5f625f3a Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 14 Aug 2025 14:35:37 -0400 Subject: [PATCH] Fixed #11129 --- core/src/mindustry/ui/fragments/HudFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/ui/fragments/HudFragment.java b/core/src/mindustry/ui/fragments/HudFragment.java index 969a4e7d9f..b0e64a0ddf 100644 --- a/core/src/mindustry/ui/fragments/HudFragment.java +++ b/core/src/mindustry/ui/fragments/HudFragment.java @@ -995,7 +995,11 @@ public class HudFragment{ count[0] = -1; t.clear(); } - }).growX().visible(() -> player.unit() instanceof Payloadc p && p.payloadUsed() > 0).colspan(2); + }).growX().visible(() -> { + boolean result = player.unit() instanceof Payloadc p && p.payloadUsed() > 0; + if(!result) count[0] = -1f; + return result; + }).colspan(2); table.row(); Bits statuses = new Bits();