protected void setDirectory(File directory) throws IOException
{
rootDirectory = findRootDirectory(directory);
regionDirectory = findRegionDirectory(directory);
access = ChunkAccess.createInstance(directory);
manager = new ChunkManager(access, readOnly);
canvas = new WorldCanvas(manager);
}