remove markModified
This commit is contained in:
parent
604c87637e
commit
5b525916d0
@ -926,7 +926,6 @@ export const addCrewShipRawSalvage = (
|
|||||||
|
|
||||||
if (itemIndex !== -1) {
|
if (itemIndex !== -1) {
|
||||||
CrewShipRawSalvage[itemIndex].ItemCount += ItemCount;
|
CrewShipRawSalvage[itemIndex].ItemCount += ItemCount;
|
||||||
inventory.markModified(`CrewShipRawSalvage.${itemIndex}.ItemCount`);
|
|
||||||
} else {
|
} else {
|
||||||
CrewShipRawSalvage.push({ ItemCount, ItemType });
|
CrewShipRawSalvage.push({ ItemCount, ItemType });
|
||||||
}
|
}
|
||||||
@ -941,7 +940,6 @@ export const addCrewShipAmmo = (inventory: TInventoryDatabaseDocument, itemsArra
|
|||||||
|
|
||||||
if (itemIndex !== -1) {
|
if (itemIndex !== -1) {
|
||||||
CrewShipAmmo[itemIndex].ItemCount += ItemCount;
|
CrewShipAmmo[itemIndex].ItemCount += ItemCount;
|
||||||
inventory.markModified(`CrewShipAmmo.${itemIndex}.ItemCount`);
|
|
||||||
} else {
|
} else {
|
||||||
CrewShipAmmo.push({ ItemCount, ItemType });
|
CrewShipAmmo.push({ ItemCount, ItemType });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user