diff --git a/Crafter.lua b/Crafter.lua index a0fa646..d3506a4 100644 --- a/Crafter.lua +++ b/Crafter.lua @@ -183,18 +183,18 @@ local validityFunctions = --stuff that's not here will automatically recieve a v -- uses the info in validityFunctions to recheck and see if attributes are an impediment to crafting. local function applyValidityFunctions(requestTable) - for attribute, t in pairs(validityFunctions) do + for attribute, validationInfo in pairs(validityFunctions) do if requestTable["Station"] == 7 and attribute == "Style" then else local params = {} - for i = 1, #t[2] do + for i = 1, #validationInfo[2] do - params[#params + 1] = requestTable["CraftRequestTable"][t[2][i]] + params[#params + 1] = requestTable["CraftRequestTable"][validationInfo[2][i]] end --d("one application for: "..attribute) - requestTable[attribute].isKnown = t[1](unpack(params) ) + requestTable[attribute].isKnown = validationInfo[1](unpack(params) ) end end end @@ -661,6 +661,11 @@ local function addByItemLinkToQueue(itemLink) local styleIndex = GetItemLinkItemStyle(itemLink) requestTable["Style"] = findMatchingSelected(DolgubonSetCrafter.styleNames, styleIndex) + if requestTable["Style"] == nil then + d("The item link is missing a style, and could not be added to the queue") + ZO_Alert(ERROR, SOUNDS.GENERAL_ALERT_ERROR ,"The item link is missing a style, and could not be added to the queue") + return + end local traitIndex = GetItemLinkTraitInfo(itemLink)+1 diff --git a/DolgubonsLazySetCrafter.txt b/DolgubonsLazySetCrafter.txt index bb42e3e..ec016ba 100644 --- a/DolgubonsLazySetCrafter.txt +++ b/DolgubonsLazySetCrafter.txt @@ -4,10 +4,10 @@ ; States and/or other countries. All rights reserved. ; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms -## Title: Dolgubon's Lazy Set Crafter v3.0.4.1 -## APIVersion: 101042 +## Title: Dolgubon's Lazy Set Crafter v3.0.4.2 +## APIVersion: 101043 ## Author: Dolgubon -## Version: 3.0.4.1 +## Version: 3.0.4.2 ## SavedVariables: dolgubonslazysetcraftersavedvars ## DependsOn: LibLazyCrafting>=4005 LibAddonMenu-2.0 LibStub ## OptionalDependsOn: pChat LibFeedback LibCustomMenu LibPrice diff --git a/SetCrafter.lua b/SetCrafter.lua index 469cfe9..a30376d 100644 --- a/SetCrafter.lua +++ b/SetCrafter.lua @@ -193,7 +193,7 @@ function DolgubonSetCrafter:Initialize() "If you found a bug, have a request or a suggestion, or wish to donate, you can send me a mail here.") window:SetHidden(true) - local currentAPIVersionOfAddon = 101042 + local currentAPIVersionOfAddon = 101043 if GetAPIVersion() > currentAPIVersionOfAddon and GetWorldName()~="PTS" then d("Update your addons!") diff --git a/SetCrafterXMLUI.xml b/SetCrafterXMLUI.xml index c089215..5f10cf2 100644 --- a/SetCrafterXMLUI.xml +++ b/SetCrafterXMLUI.xml @@ -6,11 +6,11 @@ Last Modified: December 2016 Created by Dolgubon (Joseph Heinzle) --> - + - - + \ No newline at end of file diff --git a/Templates.xml b/Templates.xml index 4348544..5a43279 100644 --- a/Templates.xml +++ b/Templates.xml @@ -1,11 +1,11 @@ - + - - - + - - \ No newline at end of file