View Single Post
12/11/14, 02:23 PM   #10
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Garkin View Post
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)
Thanks for looking into it Garkin. Even though I removed all addons, logged out & back in, its nice to know its not just me.
  Reply With Quote