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:
parent
a7410dee64
commit
dd7085eee9
1 changed files with 1 additions and 12 deletions
|
@ -104,18 +104,7 @@ public class RenderCrate extends TileEntitySpecialRenderer
|
||||||
{
|
{
|
||||||
this.renderText(amount, side, 0.02f, x, y - 0.15f, z);
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue