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