done :checkmark:

This commit is contained in:
UnknownUser1789 2023-01-15 18:30:06 +00:00
parent c3b6baf6c9
commit 6403cea7cf
6 changed files with 64551 additions and 64402 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -30,9 +30,11 @@ public class Halo extends CosmeticBase {
if (CosmeticController.renderHalo(player)) { if (CosmeticController.renderHalo(player)) {
GlStateManager.pushMatrix(); GlStateManager.pushMatrix();
this.playerRenderer.bindTexture(Halo.HALOBLUE); this.playerRenderer.bindTexture(Halo.HALOBLUE);
if(player.isSneaking()) {
GlStateManager.translate(0, 0.225, 0);
}
GlStateManager.color(1, 1, 1); GlStateManager.color(1, 1, 1);
this.modelHalo.render(player, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, scale); this.modelHalo.render(player, limbSwing, limbSwingAmount, ageInTicks, headYaw, headPitch, scale);
GlStateManager.color(1.0f, 1.0f, 1.0f);
GlStateManager.popMatrix(); GlStateManager.popMatrix();
} }
} }

View File

@ -171,6 +171,7 @@ public class GuiIngame extends Gui {
GlStateManager.enableBlend(); GlStateManager.enableBlend();
if (this.showCrosshair()) { if (this.showCrosshair()) {
GlStateManager.pushMatrix();
GlStateManager.tryBlendFuncSeparate(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_COLOR, 1, 0); GlStateManager.tryBlendFuncSeparate(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_COLOR, 1, 0);
GlStateManager.disableAlpha(); GlStateManager.disableAlpha();
@ -179,6 +180,7 @@ public class GuiIngame extends Gui {
this.drawTexturedModalRect(i / 2 - 7, j / 2 - 7, 0, 0, 16, 16); this.drawTexturedModalRect(i / 2 - 7, j / 2 - 7, 0, 0, 16, 16);
GlStateManager.popMatrix();
} }
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);