Skip to content

Commit

Permalink
Remove vouchers limit
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed May 29, 2024
1 parent b113ffc commit 0526c7a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/savedata/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ func Update(uuid []byte, slot int, save any) error {
return fmt.Errorf("client version out of date")
}

if save.VoucherCounts["0"] > 300 ||
save.VoucherCounts["1"] > 150 ||
save.VoucherCounts["2"] > 100 ||
save.VoucherCounts["3"] > 10 {
db.SetAccountBanned(uuid, true)
}

err = db.UpdateAccountStats(uuid, save.GameStats, save.VoucherCounts)
if err != nil {
return fmt.Errorf("failed to update account stats: %s", err)
Expand Down

0 comments on commit 0526c7a

Please sign in to comment.