Skip to content

Commit

Permalink
Update MobEspHack.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mdenials authored Nov 11, 2023
1 parent a21f192 commit 62d4d90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/wurstclient/hacks/MobEspHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ private void renderTracers(MatrixStack matrixStack, float partialTicks,
float[] colorF = color.getColorF();

if(monocromeColor.isChecked()) {
RenderSystem.setShaderColor(colorF[0], colorF[1], colorF[2], 1);
float avgColor = (colorF[0] + colorF[1] + colorF[2]) / 3;
RenderSystem.setShaderColor(avgColor, avgColor, avgColor, 1);
}

Matrix4f matrix = matrixStack.peek().getPositionMatrix();
Expand Down

0 comments on commit 62d4d90

Please sign in to comment.