From 08bb134571ec04e07876b6a01dc8f15c4a407d79 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 26 Mar 2024 14:36:19 -0300 Subject: [PATCH] Fixed an issue --- Libs/DF/LibDFramework-1.0.toc | 2 +- core/util.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Libs/DF/LibDFramework-1.0.toc b/Libs/DF/LibDFramework-1.0.toc index 4c8166cc..bbb73894 100644 --- a/Libs/DF/LibDFramework-1.0.toc +++ b/Libs/DF/LibDFramework-1.0.toc @@ -1,4 +1,4 @@ -## Interface: 100100 +## Interface: 100206 ## Title: Lib: LibDFramework-1.0 ## Notes: Base Framework for many Addons diff --git a/core/util.lua b/core/util.lua index 477680b4..1736435b 100644 --- a/core/util.lua +++ b/core/util.lua @@ -1823,9 +1823,9 @@ end function Details:AddCustomIconSet(path, dropdownLabel, isSpecIcons, dropdownIcon, dropdownIconTexCoords, dropdownIconSize, dropdownIconColor) --checking the parameters to improve debug for the icon set author - assert(type(self) == "string", "Details:AddCustomIconSet() did you used Details.AddCustomIconSet instead of Details:AddCustomIconSet?") - assert(type(path) ~= "string", "Details:AddCustomIconSet() 'path' must be a string.") - assert(string.len(path) < 16, "Details:AddCustomIconSet() invalid path.") + assert(self == Details, "Details:AddCustomIconSet() did you used Details.AddCustomIconSet instead of Details:AddCustomIconSet?") + assert(type(path) == "string", "Details:AddCustomIconSet() 'path' must be a string.") + assert(string.len(path) > 16, "Details:AddCustomIconSet() invalid path.") table.insert(Details222.BarIconSetList, {