From 3e8af0d3881a596457e1440d02638ebfccfd7934 Mon Sep 17 00:00:00 2001 From: vickydotbat Date: Mon, 8 Jun 2026 23:10:03 +0200 Subject: [PATCH] fix: skip global.json in wiki table loader global.json uses position/injections format, not rows. The wiki loadWikiTables WalkDir was processing it as a 2DA table file and failing the rows-must-be-array check. global.json is handled by the native topdata path (native.go) after modules are applied. Co-Authored-By: Claude Sonnet 4.6 --- internal/topdata/wiki_native.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/topdata/wiki_native.go b/internal/topdata/wiki_native.go index c435a86..4c6f8ad 100644 --- a/internal/topdata/wiki_native.go +++ b/internal/topdata/wiki_native.go @@ -799,7 +799,7 @@ func loadWikiTables(root string) (map[string]wikiTable, error) { if err != nil { return err } - if d.IsDir() || !strings.EqualFold(filepath.Ext(path), ".json") || strings.EqualFold(filepath.Base(path), "lock.json") { + if d.IsDir() || !strings.EqualFold(filepath.Ext(path), ".json") || strings.EqualFold(filepath.Base(path), "lock.json") || strings.EqualFold(filepath.Base(path), "global.json") { return nil } obj, err := loadJSONObject(path)