removed text render above crate

Mainly removed this to reduce lag of large rooms of crates were each
block would do a ray trace causing extra resource use. Second the name
of the item is already on the face of the crate so there is no need to
have it.
This commit is contained in:
Robert Seifert 2013-05-02 03:06:11 -04:00
parent a7410dee64
commit dd7085eee9

View file

@ -104,18 +104,7 @@ public class RenderCrate extends TileEntitySpecialRenderer
{
this.renderText(amount, side, 0.02f, x, y - 0.15f, z);
}
}
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
MovingObjectPosition objectPosition = player.rayTrace(8, 1);
if (objectPosition != null)
{
if (objectPosition.blockX == tileCrate.xCoord && objectPosition.blockY == tileCrate.yCoord && objectPosition.blockZ == tileCrate.zCoord)
{
RenderHelper.renderFloatingText(itemName + (amount.isEmpty() ? "" : " (" + amount + ")"), (float) x + 0.5f, (float) y - 1f, (float) z + 0.5f, 0xFFFFFF);
}
}
}
}
}