mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
hotfix: checkpoints filtering for unknown sceneries
This commit is contained in:
@@ -333,8 +333,12 @@ export const useMainStore = defineStore('mainStore', {
|
|||||||
const missingCheckpointsToAdd = unknownSceneryCheckpoints.get(scenery.name);
|
const missingCheckpointsToAdd = unknownSceneryCheckpoints.get(scenery.name);
|
||||||
|
|
||||||
if (missingCheckpointsToAdd) {
|
if (missingCheckpointsToAdd) {
|
||||||
checkpoints.push(...missingCheckpointsToAdd);
|
[...missingCheckpointsToAdd].forEach((cp) => {
|
||||||
scenery.missingCheckpoints.push(...missingCheckpointsToAdd);
|
if (cp.toLowerCase() == scenery.name.toLowerCase()) return;
|
||||||
|
|
||||||
|
checkpoints.push(cp);
|
||||||
|
scenery.missingCheckpoints.push(cp);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const uniqueTrainIds: string[] = [];
|
const uniqueTrainIds: string[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user