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

Commit 1539b21

Browse files
committed
fix levelhead shadow affecting background
1 parent cda23a1 commit 1539b21

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

1.16_combat-6/src/main/java/io/github/axolotlclient/mixin/EntityRendererMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public abstract class EntityRendererMixin<T extends Entity> {
130130

131131
Matrix4f matrix4f = matrices.peek().getModel();
132132
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
133-
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), AxolotlClient.config().useShadows.get(),
133+
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), false,
134134
matrix4f, vertexConsumers, true, LevelHead.getInstance().background.get() ? bgColor : 0,
135135
light);
136136
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
@@ -150,7 +150,7 @@ public abstract class EntityRendererMixin<T extends Entity> {
150150

151151
Matrix4f matrix4f = matrices.peek().getModel();
152152
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
153-
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), AxolotlClient.config().useShadows.get(),
153+
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), false,
154154
matrix4f, vertexConsumers, true, LevelHead.getInstance().background.get() ? bgColor : 0,
155155
light);
156156
MinecraftClient.getInstance().textRenderer.draw(text, x, y,

1.20/src/main/java/io/github/axolotlclient/mixin/EntityRendererMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private boolean enableShadows(boolean par5, @Local Matrix4f matrix4f) {
145145

146146
Matrix4f matrix4f = matrices.peek().getModel();
147147
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
148-
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), AxolotlClient.config().useShadows.get(),
148+
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), false,
149149
matrix4f, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, LevelHead.getInstance().background.get() ? bgColor : 0,
150150
light);
151151
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
@@ -164,7 +164,7 @@ private boolean enableShadows(boolean par5, @Local Matrix4f matrix4f) {
164164

165165
Matrix4f matrix4f = matrices.peek().getModel();
166166
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
167-
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), AxolotlClient.config().useShadows.get(),
167+
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), false,
168168
matrix4f, vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH, LevelHead.getInstance().background.get() ? bgColor : 0,
169169
light);
170170
MinecraftClient.getInstance().textRenderer.draw(text, x, y,

1.21.7/src/main/java/io/github/axolotlclient/mixin/EntityRendererMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private int getNameOffset(Player entity) {
149149
}
150150

151151
Matrix4f matrix4f = matrices.last().pose();
152-
textRenderer.drawInBatch(text, x, y, ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), AxolotlClient.config().useShadows.get(), matrix4f, vertexConsumers, Font.DisplayMode.SEE_THROUGH, LevelHead.getInstance().background.get() ? bgColor : 0, light);
152+
textRenderer.drawInBatch(text, x, y, ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), false, matrix4f, vertexConsumers, Font.DisplayMode.SEE_THROUGH, LevelHead.getInstance().background.get() ? bgColor : 0, light);
153153
textRenderer.drawInBatch(text, x, y, LevelHead.getInstance().textColor.get().toInt(), AxolotlClient.config().useShadows.get(), matrix4f, vertexConsumers, Font.DisplayMode.NORMAL, 0, LightTexture.lightCoordsWithEmission(light, 2));
154154
}
155155
} else if (LevelHead.getInstance().enabled.get()) {
@@ -163,7 +163,7 @@ private int getNameOffset(Player entity) {
163163
}
164164

165165
Matrix4f matrix4f = matrices.last().pose();
166-
textRenderer.drawInBatch(text, x, y, ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), AxolotlClient.config().useShadows.get(), matrix4f, vertexConsumers, Font.DisplayMode.SEE_THROUGH, LevelHead.getInstance().background.get() ? bgColor : 0, light);
166+
textRenderer.drawInBatch(text, x, y, ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()), false, matrix4f, vertexConsumers, Font.DisplayMode.SEE_THROUGH, LevelHead.getInstance().background.get() ? bgColor : 0, light);
167167
textRenderer.drawInBatch(text, x, y, LevelHead.getInstance().textColor.get().toInt(), AxolotlClient.config().useShadows.get(), matrix4f, vertexConsumers, Font.DisplayMode.NORMAL, 0, LightTexture.lightCoordsWithEmission(light, 2));
168168
}
169169
}

1.21/src/main/java/io/github/axolotlclient/mixin/EntityRendererMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public abstract class EntityRendererMixin<T extends Entity> {
147147
Matrix4f matrix4f = matrices.peek().getModel();
148148
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
149149
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()),
150-
AxolotlClient.config().useShadows.get(), matrix4f,
150+
false, matrix4f,
151151
vertexConsumers,
152152
TextRenderer.TextLayerType.SEE_THROUGH,
153153
LevelHead.getInstance().background.get() ? bgColor
@@ -176,7 +176,7 @@ public abstract class EntityRendererMixin<T extends Entity> {
176176
Matrix4f matrix4f = matrices.peek().getModel();
177177
MinecraftClient.getInstance().textRenderer.draw(text, x, y,
178178
ClientColors.ARGB.color(0x20, LevelHead.getInstance().textColor.get().toInt()),
179-
AxolotlClient.config().useShadows.get(), matrix4f,
179+
false, matrix4f,
180180
vertexConsumers, TextRenderer.TextLayerType.SEE_THROUGH,
181181
LevelHead.getInstance().background.get() ? bgColor : 0,
182182
light

0 commit comments

Comments
 (0)