diff --git a/eid_api.lua b/eid_api.lua index 4459bba3..abdb26ea 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -509,7 +509,7 @@ function EID:hasDescription(entity) end if entity.Type == EntityType.ENTITY_PICKUP then isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_COLLECTIBLE and EID.Config["DisplayItemInfo"]) - isAllowed = isAllowed or (entity.Variant == 110 and entity:GetSprite():IsPlaying("Idle") and EID.Config["DisplayItemInfo"]) + isAllowed = isAllowed or (entity.Variant == 110 and entity:GetSprite():IsPlaying("Idle") and EID.Config["DisplayItemInfo"]) -- Broken Shovel isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TRINKET and EID.Config["DisplayTrinketInfo"]) isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_TAROTCARD and EID.Config["DisplayCardInfo"]) isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_PILL and EID.Config["DisplayPillInfo"]) diff --git a/mod_config_menu.lua b/mod_config_menu.lua index 048783ca..fda987c6 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -561,6 +561,21 @@ if MCMLoaded then } ) + --------Reset to default + MCM.AddSpace("EID", "General") + + MCM.AddSetting( + "EID", + "General", + { + Type = ModConfigMenu.OptionType.BOOLEAN, + CurrentSetting = function() return true end, + Display = function() return "<---- RESET CONFIG TO DEFAULT ---->" end, + OnChange = function(currentBool) EID.Config = EID.DefaultConfig end, + Info = {"Press this reset the config back to its default values"} + } + ) + --------------------------------------------------------------------------- ---------------------------------Display-----------------------------------