|
|
@ -269,7 +269,9 @@ namespace ArtifactTracker |
|
|
|
g_bBookShelf = false; |
|
|
|
g_bBookShelf = false; |
|
|
|
std::thread([]() { |
|
|
|
std::thread([]() { |
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1200)); |
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1200)); |
|
|
|
|
|
|
|
SKSE::GetTaskInterface()->AddTask([&]() { |
|
|
|
ArtifactTracker::SyncCellStorage(); |
|
|
|
ArtifactTracker::SyncCellStorage(); |
|
|
|
|
|
|
|
}); |
|
|
|
}).detach(); |
|
|
|
}).detach(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
SyncCellStorage(); |
|
|
|
SyncCellStorage(); |
|
|
@ -757,7 +759,9 @@ namespace ArtifactTracker |
|
|
|
g_iFollowerIndex = iCurrentFollowers; |
|
|
|
g_iFollowerIndex = iCurrentFollowers; |
|
|
|
std::thread([]() { |
|
|
|
std::thread([]() { |
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(3000)); // wait for followers to load into the new cell
|
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(3000)); // wait for followers to load into the new cell
|
|
|
|
|
|
|
|
SKSE::GetTaskInterface()->AddTask([&]() { |
|
|
|
RescanFoundArtifacts(); |
|
|
|
RescanFoundArtifacts(); |
|
|
|
|
|
|
|
}); |
|
|
|
}).detach(); |
|
|
|
}).detach(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|