// Token: 0x06000002 RID: 2 RVA: 0x00002094 File Offset: 0x00000294
        public static bool isJetPack(Material mat)
        {
            string material = mat?.name;

            if (material != null)
            {
                foreach (string JPName in DrawMeshNowOrLater_JPPatch.JPNames())
                {
                    if (material.EndsWith("_north") && mat.name.StartsWith("Custom/Cutout_" + JPName))
                    {
                        return(true);
                    }
                }
                return(false);
            }
            return(false);
        }
        public static bool PreFix(Mesh mesh, Vector3 loc, Quaternion quat, Material mat, bool drawNow)
        {
            bool main = true;

            if (DrawMeshNowOrLater_JPPatch.isJetPack(mat))
            {
                loc  = DrawMeshNowOrLater_JPPatch.convertJetPack(loc);
                main = false;
            }
            if (drawNow)
            {
                mat.SetPass(0);
                Graphics.DrawMeshNow(mesh, loc, quat);
            }
            else
            {
                Graphics.DrawMesh(mesh, loc, quat, mat, 0);
            }
            return(main);
        }