Fixed BoC Search being activateable when no recipes are visible
This commit is contained in:
1 parent
e6cca3689d
commit
5992b11e0c
3 files changed
+3
-1
No files matched your search
@@ -14,6 +14,7 @@ EID.BoC.InventoryOverride = nil -- Override items the player has in its inventor
|
||||
EID.BoC.FloorQuery = {}
|
||||
EID.BoC.FloorOverride = nil -- Override total items displayed to be as floor content
|
||||
EID.BoC.LearnedRecipes = {} --These are recipes that we've learned during this run
|
||||
EID.BoC.IsDisplayingDescription = false
|
||||
|
||||
EID.RefreshBagTextbox = false
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ function EID:BoCSHandleInput()
|
||||
return
|
||||
end
|
||||
|
||||
if EID.bagPlayer == nil then
|
||||
if EID.bagPlayer == nil or not EID.BoC.IsDisplayingDescription or not EID.Config["BagOfCraftingDisplayRecipesMode"]:find("Recipe List") then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -1357,6 +1357,7 @@ function EID:OnRender()
|
||||
for playerNum,player in ipairs(playerSearch) do
|
||||
if player:HasCollectible(710) then
|
||||
local craftingSuccess = EID:handleBagOfCraftingRendering()
|
||||
EID.BoC.IsDisplayingDescription = craftingSuccess
|
||||
if craftingSuccess then
|
||||
displayedDesc[playerNum] = true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user