Profiler.endStartSection("tileentities"); RenderHelper.enableStandardItemLighting(); for (var6 = 0; var6 < this.tileEntities.size(); ++var6) { //TileEntityRenderer.instance.renderTileEntity((TileEntity)this.tileEntities.get(var6), par3); TileEntity te = (TileEntity)this.tileEntities.get(var6); if (par2ICamera.isBoundingBoxInFrustum(AxisAlignedBB.getBoundingBox((double) te.xCoord, (double) te.yCoord, (double) te.zCoord, (double) te.xCoord + 1, (double) te.yCoord + 1, (double) te.zCoord + 1))) { TileEntityRenderer.instance.renderTileEntity(te, par3); } } this.mc.entityRenderer.disableLightmap((double)par3); Profiler.endSection();