0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00
This commit is contained in:
Dev 2024-03-06 21:38:12 +00:00
commit 9b07a11a1b

View File

@ -887,10 +887,11 @@ export class QuestController
childItems.shift(); // Remove the parent
// Sort by the current `location` and update
childItems.sort((a, b) => a.location > b.location ? 1 : -1).forEach((item, index) =>
childItems.sort((a, b) => a.location > b.location ? 1 : -1);
for (const [index, item] of childItems.entries())
{
item.location = index;
});
}
}
}
}