mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
fixed trinkets for second layer skin
This commit is contained in:
parent
b34c5b482b
commit
278cd31242
3 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ public class ItemAuraCache extends ItemImpl implements ITrinketItem {
|
|||
if (type == RenderType.BODY && !isHolding) {
|
||||
boolean chest = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty();
|
||||
boolean legs = !player.inventory.armorInventory.get(EntityEquipmentSlot.LEGS.getIndex()).isEmpty();
|
||||
GlStateManager.translate(-0.15F, 0.65F, chest ? -0.195F : (legs ? -0.165F : -0.13F));
|
||||
GlStateManager.translate(-0.15F, 0.65F, chest ? -0.195F : (legs ? -0.165F : -0.1475F));
|
||||
GlStateManager.scale(0.25F, 0.25F, 0.25F);
|
||||
GlStateManager.rotate(180F, 1F, 0F, 0F);
|
||||
Helper.renderItemInWorld(stack);
|
||||
|
|
|
@ -22,7 +22,7 @@ public class ItemEye extends ItemImpl implements ITrinketItem {
|
|||
public void render(ItemStack stack, EntityPlayer player, RenderType type, boolean isHolding) {
|
||||
if (type == RenderType.BODY && !isHolding) {
|
||||
boolean armor = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty();
|
||||
GlStateManager.translate(0.1F, 0.225F, armor ? -0.195F : -0.13F);
|
||||
GlStateManager.translate(0.1F, 0.225F, armor ? -0.195F : -0.1475F);
|
||||
GlStateManager.scale(0.15F, 0.15F, 0.15F);
|
||||
GlStateManager.rotate(180F, 1F, 0F, 0F);
|
||||
Helper.renderItemInWorld(stack);
|
||||
|
|
|
@ -118,7 +118,7 @@ public class ItemShockwaveCreator extends ItemImpl implements ITrinketItem {
|
|||
public void render(ItemStack stack, EntityPlayer player, PlayerLayerTrinkets.RenderType type, boolean isHolding) {
|
||||
if (type == PlayerLayerTrinkets.RenderType.BODY && !isHolding) {
|
||||
boolean armor = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty();
|
||||
GlStateManager.translate(-0.1675F, -0.05F, armor ? -0.195F : -0.13F);
|
||||
GlStateManager.translate(-0.1675F, -0.05F, armor ? -0.195F : -0.1475F);
|
||||
GlStateManager.scale(0.021F, 0.021F, 0.021F);
|
||||
|
||||
GlStateManager.pushMatrix();
|
||||
|
|
Loading…
Reference in a new issue