From acda76373dbac969dbc53df6383cfc674de5af96 Mon Sep 17 00:00:00 2001 From: Repooc Date: Mon, 12 Oct 2020 15:12:28 -0400 Subject: [PATCH] add protection from error if someone toggles shadows without it enabled... also noticed it errored after a certain amount of time at times. --- Modules/SquareMinimapButtons.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/SquareMinimapButtons.lua b/Modules/SquareMinimapButtons.lua index 0f31af1..572bdb4 100644 --- a/Modules/SquareMinimapButtons.lua +++ b/Modules/SquareMinimapButtons.lua @@ -503,7 +503,7 @@ function SMB:GrabMinimapButtons() end function SMB:Update() - if not SMB.db.BarEnabled then return end + if not SMB.db.BarEnabled or not SMB.db.Enable then return end local AnchorX, AnchorY = 0, 1 local ButtonsPerRow = SMB.db.ButtonsPerRow or 12 -- GitLab