NOW fix hooves busting shields whilst riding

This commit is contained in:
Sollace 2018-08-22 15:21:47 +02:00
parent 32b9182671
commit aa1a6e0002

View file

@ -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);