From 878fcbdb18b1a1e212745b487bd7b107d01b6549 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Sun, 31 Dec 2023 06:11:45 -0700 Subject: [PATCH] Revert "Probably a safer fix to this" This reverts commit 3065f32c64a15c8d6b6973ad5633725da6293585. --- AtlasLoot/Libs/DewdropLib/AceLibrary/AceLibrary.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AtlasLoot/Libs/DewdropLib/AceLibrary/AceLibrary.lua b/AtlasLoot/Libs/DewdropLib/AceLibrary/AceLibrary.lua index bebfa34..c71ec22 100644 --- a/AtlasLoot/Libs/DewdropLib/AceLibrary/AceLibrary.lua +++ b/AtlasLoot/Libs/DewdropLib/AceLibrary/AceLibrary.lua @@ -392,10 +392,8 @@ local function TryToLoadStandalone(major) end local field = "X-AceLibrary-" .. major - local metadata for i = 1, GetNumAddOns() do - metadata = GetAddOnMetadata(i, field) - if metadata and metadata ~= "" then + if GetAddOnMetadata(i, field) ~= "" then name, _, _, enabled, loadable = GetAddOnInfo(i) loadable = (enabled and loadable) or TryToEnable(name)