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

Commit 1994ac8

Browse files
committed
(CrosshairHud/1.20+) fix: two attack indicators
1 parent eb8262e commit 1994ac8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

1.20/src/main/java/io/github/axolotlclient/modules/hud/gui/hud/vanilla/CrosshairHud.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public void render(GuiGraphics graphics, float delta) {
232232
}
233233
}
234234
}
235-
if (indicator == AttackIndicator.CROSSHAIR && !type.get().equals(Crosshair.TEXTURE)) {
235+
if (indicator == AttackIndicator.CROSSHAIR && !type.get().equals(Crosshair.TEXTURE) && !type.get().equals(Crosshair.CUSTOM)) {
236236
float progress = this.client.player.getAttackCooldownProgress(0.0F);
237237
if (progress != 1.0F) {
238238
RenderUtil.drawRectangle(graphics, getRawX() + (getWidth() / 2) - 6, getRawY() + (getHeight() / 2) + 9,

1.21.4/src/main/java/io/github/axolotlclient/modules/hud/gui/hud/vanilla/CrosshairHud.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public void renderCrosshair(GuiGraphics graphics, float delta) {
228228
}
229229
}
230230
}
231-
if (indicator == AttackIndicatorStatus.CROSSHAIR && !type.get().equals(Crosshair.TEXTURE)) {
231+
if (indicator == AttackIndicatorStatus.CROSSHAIR && !type.get().equals(Crosshair.TEXTURE) && !type.get().equals(Crosshair.CUSTOM)) {
232232
float progress = this.client.player.getAttackStrengthScale(0.0F);
233233
if (progress != 1.0F) {
234234
fillRenderType(graphics, blend, getRawX() + (getWidth() / 2) - 6, getRawY() + (getHeight() / 2) + 9,

1.21/src/main/java/io/github/axolotlclient/modules/hud/gui/hud/vanilla/CrosshairHud.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void render(GuiGraphics graphics, float delta) {
235235
}
236236
}
237237
}
238-
if (indicator == AttackIndicator.CROSSHAIR && !type.get().equals(Crosshair.TEXTURE)) {
238+
if (indicator == AttackIndicator.CROSSHAIR && !type.get().equals(Crosshair.TEXTURE) && !type.get().equals(Crosshair.CUSTOM)) {
239239
float progress = this.client.player.getAttackCooldownProgress(0.0F);
240240
if (progress != 1.0F) {
241241
RenderUtil.drawRectangle(graphics, getRawX() + (getWidth() / 2) - 6, getRawY() + (getHeight() / 2) + 9,

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.parallel=true
66
axolotlclient.modules.all=true
77

88
# Mod Properties
9-
version=3.1.2-beta.1
9+
version=3.1.2-beta.2
1010

1111
maven_group=io.github.axolotlclient
1212

0 commit comments

Comments
 (0)