fix module sorting with status being inverted
Some checks failed
/ Build BaseBand (push) Has been cancelled
Some checks failed
/ Build BaseBand (push) Has been cancelled
This commit is contained in:
parent
8016829246
commit
90ae96447c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue