fix bug with setting uses of button

This commit is contained in:
XtraCube committed 2024-09-14 23:22:12 -04:00
1 parent 836823c477
commit 3aecd5a91c
1 file changed
+1
+1
View File
@@ -167,6 +167,7 @@ public abstract class CustomActionButton
public void SetUses(int amount)
{
UsesLeft = Mathf.Clamp(amount, 0, int.MaxValue);
Button?.SetUsesRemaining(MaxUses);
}
/// <summary>