FIX: Calculation removed wrong parts from restParts
This commit is contained in:
parent
c66ae0854d
commit
8f33a16843
@ -147,7 +147,7 @@ export class Calculation {
|
||||
const newPart = !foundParts.includes(destinationPart);
|
||||
if (newPart) {
|
||||
foundParts.push(destinationPart);
|
||||
restParts.splice(restParts.indexOf(battery), 1);
|
||||
restParts.splice(restParts.indexOf(destinationPart), 1);
|
||||
}
|
||||
todo.push(destinationJunction);
|
||||
foundJunctions.push(destinationJunction);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user