Skip to content

Commit

Permalink
Fixed Timer Bar Objective being unable to be set to zero
Browse files Browse the repository at this point in the history
Fixes #168
  • Loading branch information
justalemon committed May 24, 2024
1 parent 9a970c3 commit c0dd52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LemonUI/TimerBars/TimerBarObjective.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public int Count
return;
}

if (value <= 0)
if (value < 0)
{
throw new ArgumentOutOfRangeException(nameof(value), "The number of objectives can't be under or equal to zero.");
throw new ArgumentOutOfRangeException(nameof(value), "The number of objectives can't be under zero.");
}

count = value;
Expand Down

0 comments on commit c0dd52f

Please sign in to comment.