From 90ae96447c02dc48faeaf0f29280a787de2b3aae Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sun, 6 Oct 2024 08:53:21 +0200 Subject: [PATCH] fix module sorting with status being inverted --- .../java/de/com/baseband/client/feature/modules/render/HUD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/render/HUD.java b/Client/src/main/java/de/com/baseband/client/feature/modules/render/HUD.java index 8f0cbf2..9e76586 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/render/HUD.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/render/HUD.java @@ -249,7 +249,7 @@ public class HUD extends Feature { } int maxWidth = TextSplitter.getStringWidth(initString); - Feature[] renderFeatures = Arrays.stream(Features.features).filter(m -> m.enabled && m.category.mayDisplay && m.displayOnHUD()).sorted(Comparator.comparingDouble(value -> -Minecraft.getMinecraft().fontRenderer.getStringWidth((includeStatus ? value.text : value.getHUDText())))).toArray(Feature[]::new); + Feature[] renderFeatures = Arrays.stream(Features.features).filter(m -> m.enabled && m.category.mayDisplay && m.displayOnHUD()).sorted(Comparator.comparingDouble(value -> -Minecraft.getMinecraft().fontRenderer.getStringWidth((includeStatus ? value.getHUDText() : value.text)))).toArray(Feature[]::new); for (Feature f : renderFeatures) { maxWidth = Math.max(mc.fontRenderer.getStringWidth(f.getHUDText()), maxWidth); }