From 8dca458610d16fd947d16b03af9802d25d6ad6b1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 19 Feb 2019 17:54:12 +0200 Subject: [PATCH] Isolate ourselves and enable alpha so other mods can't mess with shield rendering --- .../unicopia/particle/client/ParticleSphere.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java b/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java index c9ef0233..3af55247 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java @@ -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