Fix MCM bag preview blinking
This commit is contained in:
1 parent
d342ed44f7
commit
7f47297452
1 file changed
+2
-2
@@ -894,11 +894,11 @@ function EID:handleBagOfCraftingUpdating()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Called when needed based on EID.Config["RefreshRate"]
|
-- Called when needed based on EID.Config["RefreshRate"]
|
||||||
function EID:handleBagOfCraftingRendering()
|
function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
|
||||||
-- Determine if we should display anything at all
|
-- Determine if we should display anything at all
|
||||||
if ((EID.isHidden or craftingIsHidden) and EID.MCMCompat_isDisplayingEIDTab ~= "Crafting") or game.Challenge == Challenge.CHALLENGE_CANTRIPPED then
|
if ((EID.isHidden or craftingIsHidden) and EID.MCMCompat_isDisplayingEIDTab ~= "Crafting") or game.Challenge == Challenge.CHALLENGE_CANTRIPPED then
|
||||||
return false
|
return false
|
||||||
elseif not EID:RefreshThisFrame() then
|
elseif not EID:RefreshThisFrame() and not ignoreRefreshRate then
|
||||||
return false
|
return false
|
||||||
elseif EID.Config["BagOfCraftingHideInBattle"] then
|
elseif EID.Config["BagOfCraftingHideInBattle"] then
|
||||||
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
|
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
|
||||||
|
|||||||
Reference in new issue
Block a user