mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
made the cache only render on the body
This commit is contained in:
parent
00ba609408
commit
baea1d91a9
1 changed files with 8 additions and 6 deletions
|
@ -101,11 +101,13 @@ public class ItemAuraCache extends ItemImpl implements ITrinketItem {
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void render(ItemStack stack, EntityPlayer player, RenderType type) {
|
public void render(ItemStack stack, EntityPlayer player, RenderType type) {
|
||||||
boolean armor = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty();
|
if (type == RenderType.BODY) {
|
||||||
IRenderBauble.Helper.rotateIfSneaking(player);
|
boolean armor = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty();
|
||||||
GlStateManager.translate(-0.15F, 0.65F, armor ? -0.195F : -0.13F);
|
IRenderBauble.Helper.rotateIfSneaking(player);
|
||||||
GlStateManager.scale(0.25F, 0.25F, 0.25F);
|
GlStateManager.translate(-0.15F, 0.65F, armor ? -0.195F : -0.13F);
|
||||||
GlStateManager.rotate(180F, 1F, 0F, 0F);
|
GlStateManager.scale(0.25F, 0.25F, 0.25F);
|
||||||
Helper.renderItemInWorld(stack);
|
GlStateManager.rotate(180F, 1F, 0F, 0F);
|
||||||
|
Helper.renderItemInWorld(stack);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue