From b5f5d9011b46a5f0c9e8857e09e3b131c3ad19f4 Mon Sep 17 00:00:00 2001 From: Hannele Ruiz Date: Mon, 27 Mar 2023 00:32:16 -0300 Subject: [PATCH] Fixed arguments of ArgumentOutOfRange in BruteForce scaleforms Fixes #106 --- LemonUI/Scaleform/BruteForce.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LemonUI/Scaleform/BruteForce.cs b/LemonUI/Scaleform/BruteForce.cs index e72676f2..487d51b4 100644 --- a/LemonUI/Scaleform/BruteForce.cs +++ b/LemonUI/Scaleform/BruteForce.cs @@ -57,7 +57,7 @@ public string Word { if (value.Length != 8) { - throw new ArgumentOutOfRangeException("The word needs to be exactly 8 characters long.", nameof(value)); + throw new ArgumentOutOfRangeException(nameof(value), "The word needs to be exactly 8 characters long."); } word = value; CallFunction("SET_ROULETTE_WORD", value); @@ -116,7 +116,7 @@ public int CloseAfter { if (value < -1) { - throw new ArgumentOutOfRangeException("The Closure time can't be under -1.", nameof(value)); + throw new ArgumentOutOfRangeException(nameof(value), "The Closure time can't be under -1."); } closeAfter = value; } @@ -212,7 +212,7 @@ public void SetColumnSpeed(int index, float speed) { if (index >= 8 || index < 0) { - throw new ArgumentOutOfRangeException("The index needs to be between 0 and 7.", nameof(index)); + throw new ArgumentOutOfRangeException(nameof(index), "The index needs to be between 0 and 7."); } CallFunction("SET_COLUMN_SPEED", index, speed); }