fix for fix for fix

This commit is contained in:
Robert Bendun 2021-06-21 13:28:03 +02:00
parent 6c45344475
commit a11dd999df

View File

@ -102,15 +102,17 @@ class Evolution extends Arrangement {
continue; continue;
amount -= this.productsAmount[this.productIndex]; amount -= this.productsAmount[this.productIndex];
} }
const [x, y] = i2gc(this.productIndex++); try {
const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]); const [x, y] = i2gc(this.productIndex++);
if (!product) const product = Knowledge.semanticNetwork.findProductByName(this.population[this.populationIndex].products[this.productIndex]);
continue; if (!product)
return { continue;
product, return {
amount, product,
x, y amount,
}; x, y
};
} catch (e) {}
} }
} }