Fix issue where filling all internals with cargo racks would include restricted slots

This commit is contained in:
Cmdr McDonald
2017-01-13 11:34:18 +00:00
parent 6017c1ecff
commit ddb35d321c
3 changed files with 16 additions and 10 deletions

View File

@@ -39,7 +39,9 @@ export function trader(ship, shielded, standardOpts) {
ship.use(slot, sg);
sg = null;
} else {
ship.use(slot, ModuleUtils.findInternal('cr', slot.maxClass, 'E'));
if (canMount(ship, slot, 'cr')) {
ship.use(slot, ModuleUtils.findInternal('cr', slot.maxClass, 'E'));
}
}
}