only save if world is dirty