Verify that the crafting menu actually opens
This commit is contained in:
parent
31b5194652
commit
eedd2dff54
@ -98,9 +98,19 @@ auto EventListener::ProcessEvent(
|
|||||||
} else {
|
} else {
|
||||||
std::thread([furn]() {
|
std::thread([furn]() {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(300));
|
std::this_thread::sleep_for(std::chrono::milliseconds(300));
|
||||||
if (RE::PlayerCharacter::GetSingleton()->GetSitSleepState() == RE::SIT_SLEEP_STATE::kWaitingForSitAnim) {
|
if (RE::PlayerCharacter::GetSingleton()->GetSitSleepState() != RE::SIT_SLEEP_STATE::kWaitingForSitAnim) {
|
||||||
SKSE::GetTaskInterface()->AddTask([furn]() {
|
return;
|
||||||
FetchSupplies(furn);
|
}
|
||||||
|
SKSE::GetTaskInterface()->AddTask([furn]() {
|
||||||
|
FetchSupplies(furn);
|
||||||
|
});
|
||||||
|
while (RE::PlayerCharacter::GetSingleton()->GetSitSleepState() == RE::SIT_SLEEP_STATE::kWaitingForSitAnim) {
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
|
}
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(300));
|
||||||
|
if (!RE::UI::GetSingleton()->IsMenuOpen(RE::CraftingMenu::MENU_NAME)) {
|
||||||
|
SKSE::GetTaskInterface()->AddTask([]() {
|
||||||
|
ReturnSupplies();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).detach();
|
}).detach();
|
||||||
|
Loading…
Reference in New Issue
Block a user