1

Resync cell storage on picking up any potential artifact

This commit is contained in:
Eddoursul 2022-07-17 14:17:39 +02:00
parent 946e05d1ed
commit 3a52cb85b1
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -117,7 +117,7 @@ auto EventListener::ProcessEvent(
// This listener is expected to be unregistered outside of home.
if (ArtifactTracker::IsHome() && a_event->actionRef->IsPlayerRef() && a_event->objectActivated) {
const auto ref = a_event->objectActivated.get();
if (ref && ArtifactTracker::IsArtifact(ref->GetBaseObject())) {
if (ref && ArtifactTracker::g_artifactAllFormTypes.contains(ref->GetBaseObject()->GetFormType())) {
std::thread([]() {
std::this_thread::sleep_for(std::chrono::milliseconds(200));
ArtifactTracker::SyncCellStorage();