fix(charge): adding charges duplicates slot for which charge is added (#68)
This causes everything to become slower and slower.
This commit is contained in:
@@ -233,6 +233,7 @@ export const ShipSnapshotProvider = (props: ShipSnapshotProps) => {
|
||||
)?.value;
|
||||
if (moduleChargeSize !== undefined && moduleChargeSize !== chargeSize) {
|
||||
newItems.push(item);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Check if the charge fits in this module; if so, assign it. */
|
||||
|
||||
Reference in New Issue
Block a user