From dd7085eee98c330eca14b7b9b5bb2a47df34f83b Mon Sep 17 00:00:00 2001 From: Robert Seifert Date: Thu, 2 May 2013 03:06:11 -0400 Subject: [PATCH] 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. --- .../assemblyline/client/render/RenderCrate.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/minecraft/assemblyline/client/render/RenderCrate.java b/src/minecraft/assemblyline/client/render/RenderCrate.java index 9e7ba2b51..e6bd57209 100644 --- a/src/minecraft/assemblyline/client/render/RenderCrate.java +++ b/src/minecraft/assemblyline/client/render/RenderCrate.java @@ -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); - } - } + } } }