mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Do nothing if a module has no experimentals
This fixes materials not being shown for modules that can be engineered but not having experimental effects
This commit is contained in:
@@ -177,6 +177,7 @@ export default class ModalShoppingList extends TranslatedComponent {
|
||||
mats[i] = module.m.blueprint.grades[g].components[i] * this.state.matsPerGrade[g];
|
||||
}
|
||||
}
|
||||
if (module.m.blueprint.special) {
|
||||
for (const j in module.m.blueprint.special.components) {
|
||||
if (!module.m.blueprint.special.components.hasOwnProperty(j)) {
|
||||
continue;
|
||||
@@ -190,6 +191,7 @@ export default class ModalShoppingList extends TranslatedComponent {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let matsString = '';
|
||||
for (const i in mats) {
|
||||
if (!mats.hasOwnProperty(i)) {
|
||||
|
||||
Reference in New Issue
Block a user