Exemplo n.º 1
0
        static void CopyBlockProps(string src, string dst)
        {
            string path = Path.Combine(oldServer, Paths.BlockPropsPath("_" + src));

            if (!File.Exists(path))
            {
                return;
            }
            File.Copy(path, Paths.BlockPropsPath("_" + dst), true);
        }
Exemplo n.º 2
0
 public static void Load(string group, BlockProps[] list, byte scope, bool mapOld)
 {
     lock (list) {
         if (!Directory.Exists("blockprops"))
         {
             return;
         }
         string path = Paths.BlockPropsPath(group);
         if (File.Exists(path))
         {
             LoadCore(path, list, scope, mapOld);
         }
     }
 }