Fix MCM bag preview blinking

This commit is contained in:
Buurazu authored and GitHub committed 2022-03-25 17:17:52 -04:00
1 parent d342ed44f7
commit 7f47297452
1 file changed
+2 -2
+2 -2
View File
@@ -894,11 +894,11 @@ function EID:handleBagOfCraftingUpdating()
end
-- Called when needed based on EID.Config["RefreshRate"]
function EID:handleBagOfCraftingRendering()
function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
-- 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
return false
elseif not EID:RefreshThisFrame() then
elseif not EID:RefreshThisFrame() and not ignoreRefreshRate then
return false
elseif EID.Config["BagOfCraftingHideInBattle"] then
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then