public override bool ConverMapToMCRegion(string s, net.minecraft.src.IProgressUpdate iprogressupdate) { iprogressupdate.SetLoadingProgress(0); List <ChunkFile> arraylist = new List <ChunkFile>(); List <string> arraylist1 = new List <string>(); List <ChunkFile> arraylist2 = new List <ChunkFile>(); List <string> arraylist3 = new List <string>(); string file = System.IO.Path.Combine(field_22106_a, s); string file1 = System.IO.Path.Combine(file, "DIM-1"); System.Console.Out.WriteLine("Scanning folders..."); Func_22108_a(file, arraylist, arraylist1); if (File.Exists(file1)) { Func_22108_a(file1, arraylist2, arraylist3); } int i = arraylist.Count + arraylist2.Count + arraylist1.Count + arraylist3.Count; System.Console.Out.WriteLine((new java.lang.StringBuilder()).Append("Total conversion count is ").Append(i).ToString()); Func_22107_a(file, arraylist, 0, i, iprogressupdate); Func_22107_a(file1, arraylist2, arraylist.Count, i, iprogressupdate); net.minecraft.src.WorldInfo worldinfo = GetWorldInfo(s); worldinfo.SetVersion(19132); net.minecraft.src.ISaveHandler isavehandler = Func_22105_a(s, true); isavehandler.Func_22094_a(worldinfo); Func_22109_a(arraylist1, arraylist.Count + arraylist2.Count, i, iprogressupdate); if (File.Exists(file1)) { Func_22109_a(arraylist3, arraylist.Count + arraylist2.Count + arraylist1.Count, i , iprogressupdate); } return(true); }
public override void Func_22095_a(net.minecraft.src.WorldInfo worldinfo, List <EntityPlayer> list) { worldinfo.SetVersion(19132); base.Func_22095_a(worldinfo, list); }