Oops previews have been broken since the rep patch
This commit is contained in:
1 parent
cee3f5b846
commit
ce5f7f0ab2
1 file changed
+1
-9
@@ -985,18 +985,10 @@ function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
|
|||||||
showCraftingResult = false
|
showCraftingResult = false
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local craftingResult, backupResult = EID:calculateBagOfCrafting(bagItems)
|
local craftingResult = EID:calculateBagOfCrafting(bagItems)
|
||||||
if (backupResult ~= craftingResult) then EID.TabPreviewID = backupResult end
|
|
||||||
local descriptionObj = EID:getDescriptionObj(5, 100, craftingResult)
|
local descriptionObj = EID:getDescriptionObj(5, 100, craftingResult)
|
||||||
-- prepend the Hide/Preview hotkeys to the description
|
-- prepend the Hide/Preview hotkeys to the description
|
||||||
descriptionObj.Description = getHotkeyString() .. descriptionObj.Description
|
descriptionObj.Description = getHotkeyString() .. descriptionObj.Description
|
||||||
if (backupResult ~= craftingResult and descriptionObj.ObjSubType == craftingResult) then
|
|
||||||
local backupDesc = EID:getDescriptionEntry("CraftingPreviewBackup")
|
|
||||||
local backupObjName = EID:getObjectName(5, 100, backupResult)
|
|
||||||
local tabText = EID:getDescriptionEntry("FlipItemToggleInfo")
|
|
||||||
EID:appendToDescription(descriptionObj,"#" .. backupDesc .. "#{{Collectible" .. backupResult .. "}} " ..
|
|
||||||
backupObjName .. "#{{Blank}} " .. tabText)
|
|
||||||
end
|
|
||||||
EID:addDescriptionToPrint(descriptionObj)
|
EID:addDescriptionToPrint(descriptionObj)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user