Fixed seaponies messing with transparency effects

This commit is contained in:
Sollace 2018-09-18 21:05:34 +02:00
parent 0226743f31
commit cd27adb14e

View file

@ -12,6 +12,8 @@ import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.MathHelper;
import org.lwjgl.opengl.GL11;
public class ModelSeapony extends ModelUnicorn { public class ModelSeapony extends ModelUnicorn {
PonyRenderer bodyCenter; PonyRenderer bodyCenter;
@ -125,6 +127,7 @@ public class ModelSeapony extends ModelUnicorn {
tail.renderPart(scale); tail.renderPart(scale);
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
GlStateManager.enableBlend(); GlStateManager.enableBlend();
@ -133,6 +136,7 @@ public class ModelSeapony extends ModelUnicorn {
rightFin.render(scale); rightFin.render(scale);
GlStateManager.disableBlend(); GlStateManager.disableBlend();
GL11.glPopAttrib();
} }