From eed7c39fc379fef2602f7796d6ed6a8a1b965bb0 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Thu, 16 Dec 2021 02:35:05 -0500 Subject: [PATCH] achievement warning is also rep only --- mod_config_menu.lua | 46 +++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/mod_config_menu.lua b/mod_config_menu.lua index a1f6c421..ca677455 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -304,28 +304,30 @@ if MCMLoaded then } ) - -- disable the warnings that display at the start of new runs - MCM.AddSetting( - "EID", - "General", - { - Type = ModConfigMenu.OptionType.BOOLEAN, - CurrentSetting = function() - return EID.Config["DisableAchievementCheck"] - end, - Display = function() - local onOff = "Enabled" - if EID.Config["DisableAchievementCheck"] then - onOff = "Disabled" - end - return "Start of Run Warnings: " .. onOff - end, - OnChange = function(currentBool) - EID.Config["DisableAchievementCheck"] = currentBool - end, - Info = {"Toggle the achievement, outdated game version, and modded crafting recipes warnings"} - } - ) + if REPENTANCE then + -- disable the warnings that display at the start of new runs + MCM.AddSetting( + "EID", + "General", + { + Type = ModConfigMenu.OptionType.BOOLEAN, + CurrentSetting = function() + return EID.Config["DisableAchievementCheck"] + end, + Display = function() + local onOff = "Enabled" + if EID.Config["DisableAchievementCheck"] then + onOff = "Disabled" + end + return "Start of Run Warnings: " .. onOff + end, + OnChange = function(currentBool) + EID.Config["DisableAchievementCheck"] = currentBool + end, + Info = {"Toggle the achievement, outdated game version, and modded crafting recipes warnings"} + } + ) + end -- Disable on Curse MCM.AddSetting(