From aa1a6e000278f4f221e321b82de3e0d26fc9211d Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 22 Aug 2018 15:21:47 +0200 Subject: [PATCH] NOW fix hooves busting shields whilst riding --- .../com/minelittlepony/render/layer/LayerHeldPonyItem.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItem.java b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItem.java index 1d180786..6ce32546 100644 --- a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItem.java +++ b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItem.java @@ -60,12 +60,14 @@ public class LayerHeldPonyItem extends AbstractPonyL GlStateManager.translate(0, 0.2F, 0); } + boolean left = hand == EnumHandSide.LEFT; + 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(hand == EnumHandSide.LEFT ? 185 : -185, 0, 1, 0); + GlStateManager.rotate(left ? 185 : -185, 0, 1, 0); preItemRender(entity, drop, transform, hand); Minecraft.getMinecraft().getItemRenderer().renderItemSide(entity, drop, transform, hand == EnumHandSide.LEFT);