mirror of
https://github.com/Athena-Operations/Athena-Client.git
synced 2024-11-10 04:01:32 +01:00
fix rendering nametags on npcs
This commit is contained in:
parent
7e45377809
commit
bd6151a7c6
@ -465,6 +465,24 @@ public abstract class Render<T extends Entity>
|
|||||||
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
int i = fontrenderer.getStringWidth(str) / 2;
|
||||||
|
GlStateManager.disableTexture2D();
|
||||||
|
worldrenderer.begin(7, DefaultVertexFormats.POSITION_COLOR);
|
||||||
|
worldrenderer.pos((double)(-i - 1), (double)(-1 + b0), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
|
worldrenderer.pos((double)(-i - 1), (double)(8 + b0), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
|
worldrenderer.pos((double)(i + 1), (double)(8 + b0), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
|
worldrenderer.pos((double)(i + 1), (double)(-1 + b0), 0.0D).color(0.0F, 0.0F, 0.0F, 0.25F).endVertex();
|
||||||
|
tessellator.draw();
|
||||||
|
GlStateManager.enableTexture2D();
|
||||||
|
fontrenderer.drawString(str, -fontrenderer.getStringWidth(str) / 2, b0, 553648127);
|
||||||
|
GlStateManager.enableDepth();
|
||||||
|
GlStateManager.depthMask(true);
|
||||||
|
fontrenderer.drawString(str, -fontrenderer.getStringWidth(str) / 2, b0, -1);
|
||||||
|
GlStateManager.enableLighting();
|
||||||
|
GlStateManager.disableBlend();
|
||||||
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
{"stat.flyOneCm":1930,"stat.walkOneCm":1838,"stat.jump":11,"stat.playOneMinute":3547,"stat.timeSinceDeath":3547,"stat.sprintOneCm":1043,"achievement.exploreAllBiomes":{"value":0,"progress":["Desert"]}}
|
{"stat.flyOneCm":1930,"stat.walkOneCm":2000,"stat.jump":11,"stat.playOneMinute":5003,"stat.leaveGame":1,"stat.timeSinceDeath":5003,"stat.sprintOneCm":1117,"achievement.exploreAllBiomes":{"value":0,"progress":["Desert"]}}
|
@ -253,8 +253,8 @@
|
|||||||
"bind": 0,
|
"bind": 0,
|
||||||
"hud": {"scoreboard": {
|
"hud": {"scoreboard": {
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"x": 880,
|
"x": 842,
|
||||||
"y": 212,
|
"y": 225,
|
||||||
"scale": 1
|
"scale": 1
|
||||||
}},
|
}},
|
||||||
"bindtype": "Toggle",
|
"bindtype": "Toggle",
|
||||||
|
Loading…
Reference in New Issue
Block a user