From 87d08f0151e643951769e323995f1c5ed89ee200 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 01:50:17 -0400 Subject: fix: harden economy recovery, shutdown concurrency, world validation, and inventory-loss paths --- internal/casino/config_validate.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/casino/config_validate.go') diff --git a/internal/casino/config_validate.go b/internal/casino/config_validate.go index 13229bc..8e5e7b5 100644 --- a/internal/casino/config_validate.go +++ b/internal/casino/config_validate.go @@ -68,6 +68,9 @@ func validateIdentityAndBets(id string, minBet, maxBet int) error { if minBet < 0 || maxBet < 0 { return fmt.Errorf("min_bet and max_bet must not be negative") } + if minBet > 0 && maxBet == 0 && minBet > DefaultMaxBet { + return fmt.Errorf("min_bet (%d) exceeds the default maximum bet (%d); set a larger max_bet", minBet, DefaultMaxBet) + } if maxBet > 0 && maxBet < max(1, minBet) { return fmt.Errorf("max_bet must be at least min_bet") } -- cgit v1.2.3