Skip to content

Commit

Permalink
Only equip enabled loadouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachrip committed Mar 24, 2023
1 parent 305bcbe commit 4588e38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valpal",
"version": "0.0.6",
"version": "0.0.7",
"private": true,
"sideEffects": false,
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion server/appman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ export class AppManager {
`(${agent.displayName})`
);
return agentSpecificLoadouts;
})(config.loadouts, agentId);
})(
config.loadouts.filter((loadout) => loadout.enabled),
agentId
);

if (loadoutsToConsider.length === 0) {
console.log('No loadouts, not equipping.');
Expand Down

0 comments on commit 4588e38

Please sign in to comment.