mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Merge branch '3.8.0' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.0
This commit is contained in:
commit
9b07a11a1b
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user