Verified Commit acda7637 authored by Repooc's avatar Repooc

add protection from error if someone toggles shadows without it enabled......

add protection from error if someone toggles shadows without it enabled... also noticed it errored after a certain amount of time at times.
parent 35388841
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment