made use of function addUpdObjectToItem()

This commit is contained in:
Dev 2024-04-28 22:50:39 +01:00
parent 15348cec35
commit 995d50dba4
2 changed files with 3 additions and 5 deletions

View File

@ -127,10 +127,8 @@ export class HealthController
const consumedItemMaxResource = this.itemHelper.getItem(itemToConsume._tpl)[1]._props.MaxResource;
if (consumedItemMaxResource > 1)
{
if (!itemToConsume.upd)
{
itemToConsume.upd = {};
}
// Ensure item has a upd object
this.itemHelper.addUpdObjectToItem(itemToConsume);
if (itemToConsume.upd.FoodDrink === undefined)
{

View File

@ -1667,7 +1667,7 @@ export class ItemHelper
if (warningMessageWhenMissing)
{
this.logger.warning(warningMessageWhenMissing);
this.logger.debug(warningMessageWhenMissing);
}
return true;