mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Oh now _that's_ what that was for!
This commit is contained in:
parent
efc5d2932a
commit
e035a9651e
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,8 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import static net.minecraft.client.renderer.GlStateManager.*;
|
import static net.minecraft.client.renderer.GlStateManager.*;
|
||||||
|
|
||||||
public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLivingBase<M> {
|
public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLivingBase<M> {
|
||||||
|
@ -106,6 +108,8 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
||||||
|
|
||||||
double offset = entity.getYOffset() + entity.posY + 0.01;
|
double offset = entity.getYOffset() + entity.posY + 0.01;
|
||||||
|
|
||||||
|
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||||
|
|
||||||
pushMatrix();
|
pushMatrix();
|
||||||
enableBlend();
|
enableBlend();
|
||||||
color(1, 1, 1, 0.3F);
|
color(1, 1, 1, 0.3F);
|
||||||
|
@ -123,5 +127,7 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
||||||
|
|
||||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||||
popMatrix();
|
popMatrix();
|
||||||
|
|
||||||
|
popAttrib();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue