internal override Vector2i _GetChunkCoordsFromFile(string file)
{
Vector2i r = new Vector2i(0, 0);
NbtFile f = new NbtFile(file);
try
{
f.LoadFile();
}
catch (Exception e)
{
if (CorruptChunk != null)
CorruptChunk(0,0,e.ToString(), file);
return null;
}
NbtCompound Level = (NbtCompound)f.RootTag["Level"];
Vector2i t = new Vector2i(0, 0);
r.X = (Level["xPos"] as NbtInt).Value;
r.Y = (Level["zPos"] as NbtInt).Value;
f.Dispose();
return r;
}