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 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 23:10:03 +02:00
co-authored by Claude Sonnet 4.6
parent 9704760ab1
commit 3e8af0d388
+1 -1
View File
@@ -799,7 +799,7 @@ func loadWikiTables(root string) (map[string]wikiTable, error) {
if err != nil { if err != nil {
return err 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 return nil
} }
obj, err := loadJSONObject(path) obj, err := loadJSONObject(path)