diff --git a/ExpCore/commands.lua b/ExpCore/commands.lua index 9e043028..64d29a70 100644 --- a/ExpCore/commands.lua +++ b/ExpCore/commands.lua @@ -104,7 +104,7 @@ local function run_custom_command(command) return end -- runs the command - local success, err = pcall(command_calls[command.name],event,args) + local success, err = pcall(command_calls[command.name],command,args) if not success then error(err) end player_return({'commands.command-ran'},defines.text_color.info) game.write_file('commands.log','\n'..game.tick