Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.0
This commit is contained in:
commit
8b287267d5
@ -797,8 +797,8 @@ export class QuestController
|
|||||||
let totalItemCountToRemove = 0;
|
let totalItemCountToRemove = 0;
|
||||||
for (const itemHandover of handoverQuestRequest.items)
|
for (const itemHandover of handoverQuestRequest.items)
|
||||||
{
|
{
|
||||||
const matchingItemInProfile = pmcData.Inventory.items.find((x) => x._id === itemHandover.id);
|
const matchingItemInProfile = pmcData.Inventory.items.find((item) => item._id === itemHandover.id);
|
||||||
if (!handoverRequirements._props.target.includes(matchingItemInProfile._tpl))
|
if (!matchingItemInProfile || !handoverRequirements._props.target.includes(matchingItemInProfile._tpl))
|
||||||
{
|
{
|
||||||
// Item handed in by player doesnt match what was requested
|
// Item handed in by player doesnt match what was requested
|
||||||
return this.showQuestItemHandoverMatchError(
|
return this.showQuestItemHandoverMatchError(
|
||||||
|
Loading…
Reference in New Issue
Block a user