From 154e71de74792cb539dcbe24de0d492ecb8007b2 Mon Sep 17 00:00:00 2001 From: akemidx Date: Tue, 7 Nov 2023 17:43:51 -0500 Subject: [PATCH] shifting wrap around logic back into 0-265 --- app/Helpers/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index c2ccda6c84..98f40de5b8 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -349,7 +349,7 @@ class Helper $total_colors = count($colors); if ($index >= $total_colors) { - $index = $index - $total_colors; + $index = $index - $total_colors - 1; } return $colors[$index];