Skip to content

Commit

Permalink
GC quick fix (Goob-Station#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidenkrz authored Nov 29, 2024
1 parent dd77da1 commit 56608c7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)

amount = Math.Abs(amount);

if (amount == 0)
amount = 1; // Trolled

if (!_currencyMan.CanAfford(shell.Player.UserId, amount, out int balance)){
shell.WriteError(Loc.GetString("server-currency-gift-command-error-2", ("balance", balance)));
return;
Expand Down

0 comments on commit 56608c7

Please sign in to comment.