diff --git a/src/main/java/de/ellpeck/naturesaura/items/ItemAuraCache.java b/src/main/java/de/ellpeck/naturesaura/items/ItemAuraCache.java index 2cebfcce..aaab202c 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/ItemAuraCache.java +++ b/src/main/java/de/ellpeck/naturesaura/items/ItemAuraCache.java @@ -1,6 +1,5 @@ package de.ellpeck.naturesaura.items; -import baubles.api.render.IRenderBauble; import de.ellpeck.naturesaura.Helper; import de.ellpeck.naturesaura.aura.Capabilities; import de.ellpeck.naturesaura.aura.container.IAuraContainer; @@ -103,7 +102,6 @@ public class ItemAuraCache extends ItemImpl implements ITrinketItem { public void render(ItemStack stack, EntityPlayer player, RenderType type) { if (type == RenderType.BODY) { boolean armor = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty(); - IRenderBauble.Helper.rotateIfSneaking(player); GlStateManager.translate(-0.15F, 0.65F, armor ? -0.195F : -0.13F); GlStateManager.scale(0.25F, 0.25F, 0.25F); GlStateManager.rotate(180F, 1F, 0F, 0F); diff --git a/src/main/java/de/ellpeck/naturesaura/items/ItemEye.java b/src/main/java/de/ellpeck/naturesaura/items/ItemEye.java index 66f7d1cf..79f3798f 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/ItemEye.java +++ b/src/main/java/de/ellpeck/naturesaura/items/ItemEye.java @@ -1,9 +1,7 @@ package de.ellpeck.naturesaura.items; -import baubles.api.render.IRenderBauble; import de.ellpeck.naturesaura.Helper; import de.ellpeck.naturesaura.renderers.ITrinketItem; -import de.ellpeck.naturesaura.renderers.PlayerLayerTrinkets; import de.ellpeck.naturesaura.renderers.PlayerLayerTrinkets.RenderType; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.player.EntityPlayer; @@ -24,7 +22,6 @@ public class ItemEye extends ItemImpl implements ITrinketItem { public void render(ItemStack stack, EntityPlayer player, RenderType type) { if (type == RenderType.BODY) { boolean armor = !player.inventory.armorInventory.get(EntityEquipmentSlot.CHEST.getIndex()).isEmpty(); - IRenderBauble.Helper.rotateIfSneaking(player); GlStateManager.translate(0.1F, 0.19F, armor ? -0.195F : -0.13F); GlStateManager.scale(0.15F, 0.15F, 0.15F); GlStateManager.rotate(180F, 1F, 0F, 0F); diff --git a/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java b/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java index 4eaf19dc..2f464f3e 100644 --- a/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java +++ b/src/main/java/de/ellpeck/naturesaura/renderers/PlayerLayerTrinkets.java @@ -59,6 +59,10 @@ public class PlayerLayerTrinkets implements LayerRenderer { Item item = stack.getItem(); if (item instanceof ITrinketItem && !this.alreadyRendered.contains(item)) { GlStateManager.pushMatrix(); + if (type == RenderType.BODY && player.isSneaking()) { + GlStateManager.translate(0F, 0.2F, 0F); + GlStateManager.rotate(90F / (float) Math.PI, 1.0F, 0.0F, 0.0F); + } ((ITrinketItem) item).render(stack, player, type); GlStateManager.popMatrix(); this.alreadyRendered.add(item);