Exemplo n.º 1
0
        internal MeshData GenMesh()
        {
            if (ownBlock == null)
            {
                return(null);
            }

            return(ownBlock.GenMesh(api as ICoreClientAPI, GetContent(), pos));
        }
Exemplo n.º 2
0
        internal MeshData GenMesh()
        {
            if (ownBlock == null)
            {
                return(null);
            }

            MeshData mesh = ownBlock.GenMesh(Api as ICoreClientAPI, GetContent(), Pos);

            if (mesh.CustomInts != null)
            {
                for (int i = 0; i < mesh.CustomInts.Count; i++)
                {
                    mesh.CustomInts.Values[i] |= 1 << 27; // Disable water wavy
                    mesh.CustomInts.Values[i] |= 1 << 26; // Enabled weak foam
                }
            }

            return(mesh);
        }