Added detection of McRegion-format worlds for snapshot detection.

This commit is contained in:
sk89q
2011-03-09 23:51:40 -08:00
parent 96e75a4cae
commit 1d68fdd11c
6 changed files with 34 additions and 1 deletions

View File

@@ -73,7 +73,13 @@ public class Snapshot {
throw new DataException("TrueZIP is required for .tar support");
}
} else {
return new FileLegacyChunkStore(file);
ChunkStore chunkStore = new FileMcRegionChunkStore(file);
if (!chunkStore.isValid()) {
return new FileLegacyChunkStore(file);
}
return chunkStore;
}
}