mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Adjust positioning of held items
This commit is contained in:
parent
8c15d46f68
commit
ad18186382
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ public class LayerHeldPonyItem<T extends EntityLivingBase> 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);
|
||||
|
|
|
@ -22,7 +22,7 @@ public class LayerHeldPonyItemMagical<T extends EntityLivingBase> 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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue