mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 07:33:12 +09:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
5b451f160a
commit
4489794e1a
1 file changed
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "exp_reports",
|
"name": "exp_reports",
|
||||||
"load": [
|
"load": [
|
||||||
"commands.lua"
|
|
||||||
],
|
],
|
||||||
"require": [
|
"require": [
|
||||||
"globals.lua"
|
"globals.lua",
|
||||||
|
"commands.lua"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"clusterio": "*",
|
"clusterio": "*",
|
||||||
|
|||||||
Reference in new issue
Block a user