From 7eab582d8a8ee2af1a6baae7baf0696c7005de2e Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 15:16:44 -0400 Subject: fix: harden triggers, economy, casino, world data, and admin/net paths --- internal/casino/types.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/casino/types.go') diff --git a/internal/casino/types.go b/internal/casino/types.go index 080e60a..71da01c 100644 --- a/internal/casino/types.go +++ b/internal/casino/types.go @@ -162,6 +162,11 @@ func (c TableConfig) Normalize() TableConfig { if c.MaxBet < c.MinBet { c.MaxBet = c.MinBet } + // Normalize the nested game rule blocks too: a new game that reads + // t.Config.Blackjack/Baccarat directly (rather than only t.Rules) would + // otherwise see zero values and build an empty shoe. + c.Blackjack = c.Blackjack.Normalize() + c.Baccarat = c.Baccarat.Normalize() return c } -- cgit v1.2.3