From 7060359f580984e651d55ac80c9a5b77f9b9ff01 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 29 Apr 2018 16:41:40 +0200 Subject: [PATCH] Shhh you saw nothing (items glow again) --- .../render/layer/LayerHeldPonyItemMagical.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java index c4f66f87..8a83e6d6 100644 --- a/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java +++ b/src/main/java/com/minelittlepony/render/layer/LayerHeldPonyItemMagical.java @@ -7,6 +7,8 @@ import static net.minecraft.client.renderer.GlStateManager.pushMatrix; import static net.minecraft.client.renderer.GlStateManager.scale; import static net.minecraft.client.renderer.GlStateManager.translate; +import org.lwjgl.opengl.GL14; + import com.minelittlepony.ducks.IRenderItem; import com.minelittlepony.model.capabilities.IModelUnicorn; import com.minelittlepony.util.coordinates.Color; @@ -63,7 +65,7 @@ public class LayerHeldPonyItemMagical extends LayerH pushMatrix(); disableLighting(); - Color.glColor(glowColor, 0.2F); + GL14.glBlendColor(Color.r(glowColor), Color.g(glowColor), Color.b(glowColor), 0.2F); RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); ((IRenderItem) renderItem).useTransparency(true); @@ -83,10 +85,10 @@ public class LayerHeldPonyItemMagical extends LayerH } private ItemStack stackWithoutEnchantment(ItemStack original) { - ItemStack copy = original.copy(); - if (copy.isItemEnchanted()) { - copy.getTagCompound().removeTag("ench"); + if (original.isItemEnchanted()) { + original = original.copy(); + original.getTagCompound().removeTag("ench"); } - return copy; + return original; } }