diff options
| author | historia <[not public]> | 2026-09-18 15:16:44 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 15:16:44 -0400 |
| commit | 7eab582d8a8ee2af1a6baae7baf0696c7005de2e (patch) | |
| tree | 902bbc8c6e39c9f62f779ca23267714ec420b9f5 /internal/game/production_menu.go | |
| parent | 153acb7f644d755c45533b7c5311e3ffa47e8973 (diff) | |
| download | thehouseoficarus-7eab582d8a8ee2af1a6baae7baf0696c7005de2e.tar.gz | |
fix: harden triggers, economy, casino, world data, and admin/net paths
Diffstat (limited to 'internal/game/production_menu.go')
| -rw-r--r-- | internal/game/production_menu.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
