View Single Post
12/10/14, 11:36 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
In my opinion this is a bug on ZOS side which was introduced in patch 1.5.6 because of changes in crafting UI.

Unfortunately this error occurs in local function, so it will be a bit difficult to fix by addon.

I'd probably try to redefine GetMaterialQuantity function, something like:
Lua Code:
  1. function ZO_SharedSmithingCreation:GetMaterialQuantity(patternIndex, materialIndex)
  2.     local quantity
  3.     if self.selectedMaterialCountCache[patternIndex] then
  4.         quantity = self.selectedMaterialCountCache[patternIndex][materialIndex]
  5.     end
  6.     if quantity == nil then
  7.         local _, _, stack = GetSmithingPatternMaterialItemInfo(patternIndex, materialIndex)
  8.         self:SetMaterialQuantity(patternIndex, materialIndex, stack)
  9.         quantity = stack
  10.     end
  11.     return quantity or 0
  12. end

Or if you want to redefine just instance of this class, you are looking for function:
Code:
SMITHING.creationPanel:GetMaterialQuantity(patternIndex, materialIndex)

Last edited by Garkin : 12/10/14 at 11:41 PM.
  Reply With Quote