From ad181863825c52fccf019f8f3238371991c429b3 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 18 Aug 2018 13:23:42 +0200 Subject: [PATCH] Adjust positioning of held items --- .../java/com/minelittlepony/render/layer/LayerHeldPonyItem.java | 2 +- .../minelittlepony/render/layer/LayerHeldPonyItemMagical.java | 2 +- 2 files changed, 2 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 c73b842b..7df6ba2d 100644 --- a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItem.java +++ b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItem.java @@ -67,7 +67,7 @@ public class LayerHeldPonyItem extends AbstractPonyL } GlStateManager.rotate(-90, 1, 0, 0); - GlStateManager.rotate(180, 0, 1, 0); + GlStateManager.rotate(hand == EnumHandSide.LEFT ? 185 : -185, 0, 1, 0); preItemRender(entity, drop, transform, hand); Minecraft.getMinecraft().getItemRenderer().renderItemSide(entity, drop, transform, hand == EnumHandSide.LEFT); diff --git a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java index 1f6a8eab..dddc71c1 100644 --- a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java +++ b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java @@ -22,7 +22,7 @@ public class LayerHeldPonyItemMagical extends LayerH @Override protected void preItemRender(T entity, ItemStack drop, TransformType transform, EnumHandSide hand) { if (isUnicorn()) { - GlStateManager.translate(hand == EnumHandSide.LEFT ? -0.6F : 0.1F, 1, -0.5F); + GlStateManager.translate(hand == EnumHandSide.LEFT ? -0.6F : 0, 0.5F, -0.3F); } else { super.preItemRender(entity, drop, transform, hand); }