Prevent double retrieval after accidental double activation

master
Eddoursul 2 years ago
parent 40b946d83e
commit d7058764d4
  1. BIN
      SKSE/Plugins/EnderalSEEasyCrafting.dll
  2. 6
      src/src/Util.h

@ -163,8 +163,6 @@ inline void ReturnSupplies()
if (!bSuppliesFetched) {
return;
}
bSuppliesFetched = false;
if (GetSettings().at("ShowReturningNotification")) {
RE::DebugNotification("Returning supplies...");
@ -237,11 +235,13 @@ inline void ReturnSupplies()
}
});
}).detach();
bSuppliesFetched = false;
}
inline bool FetchSupplies(RE::TESFurniture* a_furn)
{
if (!a_furn) {
if (!a_furn || bSuppliesFetched) {
return false;
}

Loading…
Cancel
Save