Added logging to removeRandomItemFromAssorts() when no upd object found

This commit is contained in:
Dev 2024-04-23 10:01:41 +01:00
parent d2cf495426
commit 8366dd355d

View File

@ -407,6 +407,7 @@ export class FenceService
{ {
if (!rootItemToAdjust.upd) if (!rootItemToAdjust.upd)
{ {
this.logger.warning(`Fence Item: ${rootItemToAdjust._tpl} lacks a upd object, adding`);
rootItemToAdjust.upd = {}; rootItemToAdjust.upd = {};
} }