From 7e5db8b0f481dd6ee4d79eba919505bec16aa4cf Mon Sep 17 00:00:00 2001 From: WBHarry Date: Thu, 20 Nov 2025 17:48:54 +0100 Subject: [PATCH] Fixed so that using the loop button actually increases/decreases max on looping instead of cocatenating to string --- module/applications/ui/countdowns.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/applications/ui/countdowns.mjs b/module/applications/ui/countdowns.mjs index d7d3d25f..f9f7036c 100644 --- a/module/applications/ui/countdowns.mjs +++ b/module/applications/ui/countdowns.mjs @@ -184,9 +184,9 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application const countdown = settings.countdowns[target.id]; const newMax = countdown.progress.looping === CONFIG.DH.GENERAL.countdownLoopingTypes.increasing.id - ? countdown.progress.max + 1 + ? Number(countdown.progress.max) + 1 : countdown.progress.looping === CONFIG.DH.GENERAL.countdownLoopingTypes.decreasing.id - ? Math.max(countdown.progress.max - 1, 0) + ? Math.max(Number(countdown.progress.max) - 1, 0) : countdown.progress.max; await settings.updateSource({ [`countdowns.${target.id}.progress`]: {