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/game/production_menu.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/game/production_menu.go') diff --git a/internal/game/production_menu.go b/internal/game/production_menu.go index 4f013e7..9b9f8e6 100644 --- a/internal/game/production_menu.go +++ b/internal/game/production_menu.go @@ -107,6 +107,9 @@ func (g *Game) formatMaterials(sess *net.Session, item *item.ItemDef) string { } var parts []string for _, e := range craft.Ingredients { + if len(e.Items) == 0 { + continue + } itemName := e.Items[0] if def, err := g.ItemStore.Load(e.Items[0]); err == nil { itemName = g.itemColorize(sess, def, def.Name) -- cgit v1.2.3