mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-25 12:46:46 +00:00
fix bug with setting uses of button
This commit is contained in:
1 parent
836823c477
commit
3aecd5a91c
1 file changed
+1
@@ -167,6 +167,7 @@ public abstract class CustomActionButton
|
||||
public void SetUses(int amount)
|
||||
{
|
||||
UsesLeft = Mathf.Clamp(amount, 0, int.MaxValue);
|
||||
Button?.SetUsesRemaining(MaxUses);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user