From 4489794e1afd6d66ace3de709fca59de08d44960 Mon Sep 17 00:00:00 2001 From: Bastiaan <17990055+bbassie@users.noreply.github.com> Date: Sun, 27 Sep 2026 02:42:11 +0200 Subject: [PATCH] Require the exp_reports commands instead of loading them (#482) Files under "load" in module.json are passed to event_handler.add_lib, so they must return an event handler table. commands.lua registers the report commands and returns nothing, so require gave true and every instance with exp_reports enabled failed in on_load with "attempt to index local 'lib' (a boolean value)". Listed under "require" it runs the same way the exp_commands command files do. Co-authored-by: Claude Opus 5.5 --- exp_reports/module/module.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exp_reports/module/module.json b/exp_reports/module/module.json index 7e62512d..80ad182a 100644 --- a/exp_reports/module/module.json +++ b/exp_reports/module/module.json @@ -1,10 +1,10 @@ { "name": "exp_reports", "load": [ - "commands.lua" ], "require": [ - "globals.lua" + "globals.lua", + "commands.lua" ], "dependencies": { "clusterio": "*",