Fixed the wireframes for the Ring of Loki rendering when it's not equipped.

This commit is contained in:
Lizbeth Rika committed 2015-04-17 10:49:46 +01:00
1 parent 25a6b97ab7
commit c418f1fb13
1 file changed
+3
@@ -149,6 +149,9 @@ public class ItemLokiRing extends ItemRelicBauble implements IWireframeCoordinat
@Override
@SideOnly(Side.CLIENT)
public List<ChunkCoordinates> getWireframesToDraw(EntityPlayer player, ItemStack stack) {
if(getLokiRing(player) != stack)
return null;
MovingObjectPosition lookPos = Minecraft.getMinecraft().objectMouseOver;
if(lookPos != null && !player.worldObj.isAirBlock(lookPos.blockX, lookPos.blockY, lookPos.blockZ) && lookPos.entityHit == null) {