From fc46bb58f2dbbf47b04c8d411eebe9fea1cb6ca0 Mon Sep 17 00:00:00 2001 From: David Malchin Date: Thu, 25 Jan 2024 04:20:53 +0200 Subject: [PATCH] fix(queue): subqueue card options not being optional --- config/queue.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/queue.lua b/config/queue.lua index 4acac435a..26837f3cf 100644 --- a/config/queue.lua +++ b/config/queue.lua @@ -56,6 +56,8 @@ return { local size = params.totalQueueSize local displayTime = params.displayTime + local cardOptions = subQueue.cardOptions or {} + local progressAmount = 7 -- amount of progress shown between the queue & server local playerColumn = pos == 1 and progressAmount or (progressAmount - math.ceil(pos / (size / progressAmount)) + 1) @@ -139,11 +141,11 @@ return { { type = 'TextBlock', text = subQueue.name, - style = subQueue.cardOptions.style, - fontType = subQueue.cardOptions.fontType, - size = subQueue.cardOptions.size or 'medium', - color = subQueue.cardOptions.color, - isSubtle = subQueue.cardOptions.isSubtle, + style = cardOptions.style, + fontType = cardOptions.fontType, + size = cardOptions.size or 'medium', + color = cardOptions.color, + isSubtle = cardOptions.isSubtle, } }, },