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 6f2a0ab commit a21f192
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/net/wurstclient/hacks/MobEspHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,17 @@ private void renderBoxes(MatrixStack matrixStack, float partialTicks,
RegionPos region)
{
float p = 1;
float red = p * 2F;
float green = 2 - red;

float extraSize = boxSize.getExtraSize();
RenderSystem.setShader(GameRenderer::getPositionProgram);

for(LivingEntity e : mobs)
{

if(damageIndicator.isChecked()) {
p = (e.getMaxHealth() - e.getHealth()) / e.getMaxHealth();
p = (e.getMaxHealth() - e.getHealth()) / e.getMaxHealth();
float red = p * 2F;
float green = 2 - red;
RenderSystem.setShaderColor(red, green, 0, 0.5F);
}
else {
Expand Down

0 comments on commit a21f192

Please sign in to comment.