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

Commit 2b97902

Browse files
committed
fix another few bugs
1 parent 4d0264d commit 2b97902

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

1.16_combat-6/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ dependencies {
5454
implementation(include("org.slf4j:slf4j-api:1.7.36")!!)
5555
localRuntime("org.slf4j:slf4j-jdk14:1.7.36")
5656

57-
api("org.lwjgl:lwjgl-nanovg:3.2.2")
58-
runtimeOnly("org.lwjgl:lwjgl-nanovg:3.2.2:natives-linux")
59-
runtimeOnly("org.lwjgl:lwjgl-nanovg:3.2.2:natives-windows")
60-
runtimeOnly("org.lwjgl:lwjgl-nanovg:3.2.2:natives-macos")
57+
api("org.lwjgl:lwjgl-nanovg:3.3.2")
58+
runtimeOnly("org.lwjgl:lwjgl-nanovg:3.3.2:natives-linux")
59+
runtimeOnly("org.lwjgl:lwjgl-nanovg:3.3.2:natives-windows")
60+
runtimeOnly("org.lwjgl:lwjgl-nanovg:3.3.2:natives-macos")
6161
}
6262

6363
tasks.processResources {

1.8.9/src/main/java/io/github/axolotlclient/modules/hud/gui/hud/ChatHud.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public void render(float delta) {
104104
int i = getVisibleLineCount();
105105
int j = 0;
106106
int k = visibleMessages.size();
107-
float f = this.client.options.chatOpacity * 0.9F + 0.1F;
108107
if (k > 0) {
109108
float g = getScale();
110109
int l = MathHelper.ceil((float) getWidth() / g);
@@ -123,20 +122,27 @@ public void render(float delta) {
123122
if (animateChat.get() && m+scrolledLines < newLines) {
124123
d *= animationPercent;
125124
}
126-
int Opacity = isChatFocused() ? 255 : (int) (255.0 * d);
127125

128-
int chatOpacity = (int) (Opacity * f);
129126
++j;
130-
if (chatOpacity > 3) {
127+
int opacity = (int) (Math.max(bgColor.get().getAlpha(), textColor.get().getAlpha()) * d);
128+
if (opacity > 3) {
131129
int y = pos.y + getHeight() - (m * (9 + lineSpacing.get()));
132130
if (background.get()) {
131+
int bg = bgColor.get().toInt();
132+
if (!isChatFocused()) {
133+
bg += ((int)((bg >> 24) * d)) << 24;
134+
}
133135
fill(pos.x, y - (9 + lineSpacing.get()), pos.x + l + 4, y,
134-
bgColor.get().withAlpha(chatOpacity / 2).toInt());
136+
bg);
135137
}
136138
String string = chatHudLine.getText().getFormattedString();
137139
GlStateManager.enableBlend();
140+
int text = textColor.get().toInt();
141+
if (!isChatFocused()) {
142+
text += ((int)((text >> 24) * d)) << 24;
143+
}
138144
DrawUtil.drawString(string, pos.x, (y - 8),
139-
16777215 + (chatOpacity << 24), shadow.get());
145+
text, shadow.get());
140146
GlStateManager.disableAlphaTest();
141147
GlStateManager.disableBlend();
142148
}

gradle.properties

Lines changed: 2 additions & 2 deletions
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.1-rc.7
9+
version=3.1.1-rc.8
1010

1111
maven_group=io.github.axolotlclient
1212

@@ -33,4 +33,4 @@ osl=0.16.1
3333

3434
legacy_lwgjl3=1.2.3+1.8.9
3535

36-
config=3.0.3
36+
config=3.0.4

0 commit comments

Comments
 (0)