mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 07:54:52 +09:00
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 <noreply@anthropic.com>
16 lines
198 B
JSON
16 lines
198 B
JSON
{
|
|
"name": "exp_reports",
|
|
"load": [
|
|
],
|
|
"require": [
|
|
"globals.lua",
|
|
"commands.lua"
|
|
],
|
|
"dependencies": {
|
|
"clusterio": "*",
|
|
"exp_util": "*",
|
|
"exp_commands": "*",
|
|
"exp_roles": "*"
|
|
}
|
|
}
|