Adjust positioning of held items

This commit is contained in:
Sollace 2018-08-18 13:23:42 +02:00
parent 8c15d46f68
commit ad18186382
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ public class LayerHeldPonyItem<T extends EntityLivingBase> extends AbstractPonyL
} }
GlStateManager.rotate(-90, 1, 0, 0); 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); 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);

View file

@ -22,7 +22,7 @@ public class LayerHeldPonyItemMagical<T extends EntityLivingBase> extends LayerH
@Override @Override
protected void preItemRender(T entity, ItemStack drop, TransformType transform, EnumHandSide hand) { protected void preItemRender(T entity, ItemStack drop, TransformType transform, EnumHandSide hand) {
if (isUnicorn()) { 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 { } else {
super.preItemRender(entity, drop, transform, hand); super.preItemRender(entity, drop, transform, hand);
} }