mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Fix some things
This commit is contained in:
parent
10c4514492
commit
1d40648e47
3 changed files with 6 additions and 10 deletions
|
@ -41,14 +41,14 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
|||
}
|
||||
|
||||
@Override
|
||||
public void doRender(EntityPlayerModel par1Entity, double par2, double par4, double par6, float par8, float par9) {
|
||||
public void doRender(M par1Entity, double par2, double par4, double par6, float par8, float par9) {
|
||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||
this.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||
super.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||
popAttrib();
|
||||
pushMatrix();
|
||||
scale(1.0F, -1.0F, 1.0F);
|
||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||
this.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||
super.doRender(par1Entity, par2, par4, par6, par8, par9);
|
||||
popAttrib();
|
||||
popMatrix();
|
||||
}
|
||||
|
|
|
@ -21,8 +21,8 @@ public class RenderPonySkeleton extends RenderPonyMob<EntitySkeleton> {
|
|||
addLayer(new LayerBipedArmor(this) {
|
||||
@Override
|
||||
protected void initArmor() {
|
||||
this.field_177189_c = PMAPI.skeleton.getArmor().modelArmor;
|
||||
this.field_177186_d = PMAPI.skeleton.getArmor().modelArmorChestplate;
|
||||
this.modelLeggings = PMAPI.skeleton.getArmor().modelArmor;
|
||||
this.modelArmor = PMAPI.skeleton.getArmor().modelArmorChestplate;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -119,14 +119,10 @@ public class LayerHeldPonyItem implements LayerRenderer<EntityLivingBase> {
|
|||
|
||||
scale(2, 2, 2);
|
||||
|
||||
model.getItemCameraTransforms().applyTransform(ItemCameraTransforms.TransformType.THIRD_PERSON);
|
||||
applyTransform(model.getItemCameraTransforms(), TransformType.THIRD_PERSON);
|
||||
RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||
scale(1.1, 1.1, 1.1);
|
||||
if (model.isGui3d()) {
|
||||
// disabling textures for items messes up bounds
|
||||
disableTexture2D();
|
||||
}
|
||||
|
||||
translate(0, .01, .01);
|
||||
renderItem.renderItem(drop, model);
|
||||
translate(.01, -.01, -.02);
|
||||
|
|
Loading…
Reference in a new issue