Fixed Bag of crafting not updating when EID is in hidden mode

This commit is contained in:
Wofsauge committed 2021-08-11 03:43:46 +02:00
1 parent beb4cad9f6
commit e8b1e7f70c
2 files changed
+16 -7

No files matched your search

+8 -7
View File
@@ -538,13 +538,6 @@ local function onRender(t)
if Input.IsButtonTriggered(EID.Config["HideKey"], 0) then
EID.isHidden = not EID.isHidden
end
if EID.isHidden then
return
elseif EID.Config["HideInBattle"] then
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
return
end
end
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID
return
end
@@ -571,6 +564,14 @@ local function onRender(t)
end
end
end
if EID.isHidden then
return
elseif EID.Config["HideInBattle"] then
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
return
end
end
if EID.isDisplayingPermanent and EID.permanentDisplayTextObj ~= nil then
EID:printDescription(EID.permanentDisplayTextObj)