Run failsave return in a task
This commit is contained in:
parent
804504e7a2
commit
ddb85480d2
Binary file not shown.
@ -79,10 +79,12 @@ auto EventListener::ProcessEvent(
|
|||||||
SKSE::GetTaskInterface()->AddTask([furn]() {
|
SKSE::GetTaskInterface()->AddTask([furn]() {
|
||||||
FetchSupplies(furn);
|
FetchSupplies(furn);
|
||||||
});
|
});
|
||||||
std::thread([furn]() {
|
std::thread([]() {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||||
if (!RE::UI::GetSingleton()->IsMenuOpen(RE::CraftingMenu::MENU_NAME)) {
|
if (!RE::UI::GetSingleton()->IsMenuOpen(RE::CraftingMenu::MENU_NAME)) {
|
||||||
ReturnSupplies();
|
SKSE::GetTaskInterface()->AddTask([]() {
|
||||||
|
ReturnSupplies();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).detach();
|
}).detach();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user