mirror of
https://github.com/yuzu-emu/Command-fix
synced 2024-11-24 09:38:15 +00:00
Reverting change to how we cache triggers due to foreach loop.
This commit is contained in:
parent
a5b2f8d59f
commit
3c7dd523f0
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ require("fs").readdirSync('./triggers/').forEach(function(file) {
|
|||
// Load the trigger if it's a script.
|
||||
if (path.extname(file) == '.js') {
|
||||
logger.info(`Loaded trigger: ${file}`);
|
||||
cachedTriggers[file] = require(`./triggers/${file}`);
|
||||
cachedTriggers.push(require(`./triggers/${file}`));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue