mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 14:27:59 +01:00
NOW fix hooves busting shields whilst riding
This commit is contained in:
parent
32b9182671
commit
aa1a6e0002
1 changed files with 4 additions and 2 deletions
|
@ -60,12 +60,14 @@ public class LayerHeldPonyItem<T extends EntityLivingBase> extends AbstractPonyL
|
||||||
GlStateManager.translate(0, 0.2F, 0);
|
GlStateManager.translate(0, 0.2F, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean left = hand == EnumHandSide.LEFT;
|
||||||
|
|
||||||
if (entity.isRiding()) {
|
if (entity.isRiding()) {
|
||||||
GlStateManager.translate(0, -0.2F, -0.5F);
|
GlStateManager.translate(left ? 0.1F : -0.1F, -0.2F, -0.5F);
|
||||||
}
|
}
|
||||||
|
|
||||||
GlStateManager.rotate(-90, 1, 0, 0);
|
GlStateManager.rotate(-90, 1, 0, 0);
|
||||||
GlStateManager.rotate(hand == EnumHandSide.LEFT ? 185 : -185, 0, 1, 0);
|
GlStateManager.rotate(left ? 185 : -185, 0, 1, 0);
|
||||||
|
|
||||||
preItemRender(entity, drop, transform, hand);
|
preItemRender(entity, drop, transform, hand);
|
||||||
Minecraft.getMinecraft().getItemRenderer().renderItemSide(entity, drop, transform, hand == EnumHandSide.LEFT);
|
Minecraft.getMinecraft().getItemRenderer().renderItemSide(entity, drop, transform, hand == EnumHandSide.LEFT);
|
||||||
|
|
Loading…
Reference in a new issue