Fix some things

This commit is contained in:
Matthew Messinger 2016-03-09 17:07:40 -05:00
parent 10c4514492
commit 1d40648e47
3 changed files with 6 additions and 10 deletions

View file

@ -41,14 +41,14 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
} }
@Override @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); GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
this.doRender(par1Entity, par2, par4, par6, par8, par9); super.doRender(par1Entity, par2, par4, par6, par8, par9);
popAttrib(); popAttrib();
pushMatrix(); pushMatrix();
scale(1.0F, -1.0F, 1.0F); scale(1.0F, -1.0F, 1.0F);
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
this.doRender(par1Entity, par2, par4, par6, par8, par9); super.doRender(par1Entity, par2, par4, par6, par8, par9);
popAttrib(); popAttrib();
popMatrix(); popMatrix();
} }

View file

@ -21,8 +21,8 @@ public class RenderPonySkeleton extends RenderPonyMob<EntitySkeleton> {
addLayer(new LayerBipedArmor(this) { addLayer(new LayerBipedArmor(this) {
@Override @Override
protected void initArmor() { protected void initArmor() {
this.field_177189_c = PMAPI.skeleton.getArmor().modelArmor; this.modelLeggings = PMAPI.skeleton.getArmor().modelArmor;
this.field_177186_d = PMAPI.skeleton.getArmor().modelArmorChestplate; this.modelArmor = PMAPI.skeleton.getArmor().modelArmorChestplate;
} }
}); });
} }

View file

@ -119,14 +119,10 @@ public class LayerHeldPonyItem implements LayerRenderer<EntityLivingBase> {
scale(2, 2, 2); scale(2, 2, 2);
model.getItemCameraTransforms().applyTransform(ItemCameraTransforms.TransformType.THIRD_PERSON);
applyTransform(model.getItemCameraTransforms(), TransformType.THIRD_PERSON); applyTransform(model.getItemCameraTransforms(), TransformType.THIRD_PERSON);
RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
scale(1.1, 1.1, 1.1); scale(1.1, 1.1, 1.1);
if (model.isGui3d()) {
// disabling textures for items messes up bounds
disableTexture2D();
}
translate(0, .01, .01); translate(0, .01, .01);
renderItem.renderItem(drop, model); renderItem.renderItem(drop, model);
translate(.01, -.01, -.02); translate(.01, -.01, -.02);