Isolate ourselves and enable alpha so other mods can't mess with shield rendering

This commit is contained in:
Sollace 2019-02-19 17:54:12 +02:00
parent a098e18100
commit 8dca458610

View file

@ -78,9 +78,11 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
return; return;
} }
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
GlStateManager.depthMask(false); GlStateManager.depthMask(false);
GlStateManager.shadeModel(GL11.GL_SMOOTH); GlStateManager.shadeModel(GL11.GL_SMOOTH);
GlStateManager.enableAlpha();
GlStateManager.enableBlend(); GlStateManager.enableBlend();
Minecraft.getMinecraft().entityRenderer.disableLightmap(); Minecraft.getMinecraft().entityRenderer.disableLightmap();
GlStateManager.enableLighting(); GlStateManager.enableLighting();
@ -100,6 +102,7 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
GlStateManager.disableBlend(); GlStateManager.disableBlend();
GlStateManager.depthMask(true); GlStateManager.depthMask(true);
GlStateManager.color(1, 1, 1, 1); GlStateManager.color(1, 1, 1, 1);
GL11.glPopAttrib();
} }
@Override @Override