From cb24f9b26870a3189a7037f633dceb13a113cef8 Mon Sep 17 00:00:00 2001 From: OnearmedPG Date: Fri, 5 Dec 2025 14:07:05 +0100 Subject: [PATCH] fixing not taking custom sound settings if false --- bots/FretBots/Settings.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bots/FretBots/Settings.lua b/bots/FretBots/Settings.lua index f4f1c0f..cdad96f 100644 --- a/bots/FretBots/Settings.lua +++ b/bots/FretBots/Settings.lua @@ -114,9 +114,13 @@ local chatCommands = 'speak', 'sp', -- speak specific language } - -Settings.isPlaySounds = Customize.Fretbots.Play_Sounds or Settings.isPlaySounds -Settings.isPlayerDeathSound = Customize.Fretbots.Player_Death_Sound or Settings.isPlayerDeathSound +if Customize and Customize.Fretbots then + Settings.isPlaySounds = Customize.Fretbots.Play_Sounds + Settings.isPlayerDeathSound = Customize.Fretbots.Player_Death_Sound +else + Settings.isPlaySounds = Settings.isPlaySounds + Settings.isPlayerDeathSound = Settings.isPlayerDeathSound +end function Settings:CalculateDifficultyScale(difficulty) -- no argument implies default, do nothing