From cd27adb14e6ed47510ad6f67bfd3af6266dda981 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 18 Sep 2018 21:05:34 +0200 Subject: [PATCH] Fixed seaponies messing with transparency effects --- .../java/com/minelittlepony/model/ponies/ModelSeapony.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java b/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java index ab23a36a..3aa2ede0 100644 --- a/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java +++ b/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java @@ -12,6 +12,8 @@ import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.math.MathHelper; +import org.lwjgl.opengl.GL11; + public class ModelSeapony extends ModelUnicorn { PonyRenderer bodyCenter; @@ -125,6 +127,7 @@ public class ModelSeapony extends ModelUnicorn { tail.renderPart(scale); + GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); GlStateManager.enableBlend(); @@ -133,6 +136,7 @@ public class ModelSeapony extends ModelUnicorn { rightFin.render(scale); GlStateManager.disableBlend(); + GL11.glPopAttrib(); }