aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index af2ff66..c0c6488 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -764,6 +764,10 @@ func (g *Game) ProcessQueuedCommands() {
func (g *Game) buildCraftIndex() {
items, err := g.ItemStore.LoadAll()
if err != nil {
+ // A malformed item file must not silently empty every crafting menu;
+ // surface it so the operator can fix the file (the validator also
+ // reports it).
+ log.Printf("craft index: item load failed; craft index left empty: %v", err)
return
}
g.CraftIndex.Build(items)