mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Fix reorderHideoutAreasWithResouceInputs()
off by one error because it was checking the index instead of finding the area type
This commit is contained in:
parent
fce724b380
commit
15082afde2
@ -575,8 +575,7 @@ export class ProfileFixerService
|
|||||||
|
|
||||||
for (const areaId of areasToCheck)
|
for (const areaId of areasToCheck)
|
||||||
{
|
{
|
||||||
const area = pmcProfile.Hideout.Areas[areaId];
|
const area = pmcProfile.Hideout.Areas.find(x => x.type === areaId);
|
||||||
|
|
||||||
if (!area)
|
if (!area)
|
||||||
{
|
{
|
||||||
this.logger.debug(`unable to sort ${areaId} slots, no area found`);
|
this.logger.debug(`unable to sort ${areaId} slots, no area found`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user