Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit dfa246a

Browse files
committed
fix oversight
1 parent a8d2732 commit dfa246a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

1.21.4/src/main/java/io/github/axolotlclient/modules/hud/HudManager.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import java.util.stream.Collectors;
2727

2828
import com.mojang.blaze3d.platform.InputConstants;
29-
import com.mojang.blaze3d.systems.RenderSystem;
3029
import io.github.axolotlclient.AxolotlClient;
3130
import io.github.axolotlclient.AxolotlClientConfig.api.options.OptionCategory;
3231
import io.github.axolotlclient.modules.AbstractModule;
@@ -110,8 +109,8 @@ public void init() {
110109

111110
entries.values().forEach(HudEntry::init);
112111

113-
((ReachHud)get(ReachHud.ID)).getEnabled().setForceOff(true, "feature.broken");
114-
((ComboHud)get(ComboHud.ID)).getEnabled().setForceOff(true, "feature.broken");
112+
((ReachHud) get(ReachHud.ID)).getEnabled().setForceOff(true, "feature.broken");
113+
((ComboHud) get(ComboHud.ID)).getEnabled().setForceOff(true, "feature.broken");
115114

116115
refreshAllBounds();
117116
}
@@ -146,7 +145,6 @@ public HudEntry get(ResourceLocation identifier) {
146145

147146
public void render(GuiGraphics graphics, DeltaTracker delta) {
148147
Profiler.get().push("Hud Modules");
149-
RenderSystem.setShaderColor(1, 1, 1, 1);
150148
if (!(client.screen instanceof HudEditScreen)) {
151149
for (HudEntry hud : getEntries()) {
152150
if (hud.isEnabled() && (!client.gui.getDebugOverlay().showDebugScreen() || hud.overridesF3())) {

1.21.4/src/main/java/io/github/axolotlclient/modules/hud/gui/entry/BoxHudEntry.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import io.github.axolotlclient.AxolotlClientConfig.impl.options.BooleanOption;
3030
import io.github.axolotlclient.AxolotlClientConfig.impl.options.ColorOption;
3131
import io.github.axolotlclient.modules.hud.gui.AbstractHudEntry;
32-
import io.github.axolotlclient.modules.hud.util.Rectangle;
3332
import io.github.axolotlclient.util.ClientColors;
3433
import net.minecraft.client.gui.GuiGraphics;
3534

@@ -79,10 +78,7 @@ public void render(GuiGraphics graphics, float delta) {
7978
scale(graphics);
8079
if (backgroundAllowed) {
8180
if (background.get() && backgroundColor.get().getAlpha() > 0) {
82-
Rectangle bounds= getBounds();
83-
graphics.fill(0, 50, 50, 100, 0x64000000);
84-
fillRect(graphics, bounds.x, bounds.y, bounds.width, bounds.height, 0x64000000);
85-
//fillRect(graphics, getBounds(), backgroundColor.getDefault());
81+
fillRect(graphics, getBounds(), backgroundColor.get());
8682
}
8783
if (outline.get() && outlineColor.get().getAlpha() > 0) {
8884
outlineRect(graphics, getBounds(), outlineColor.get());

0 commit comments

Comments
 (0)