diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index 8b10a8aa..e31f98d9 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -802,17 +802,17 @@ export class HideoutController if (rewardIsStackable) { // Create root item - const rewardToAdd: Item[] = [{ + const rewardToAdd: Item = { _id: this.hashUtil.generate(), _tpl: recipe.endProduct, upd: { StackObjectsCount: recipe.count } - }]; + }; // Split item into separate items with acceptable stack sizes - const splitReward = this.itemHelper.splitStack(rewardToAdd[0]); - itemAndChildrenToSendToPlayer.push(splitReward); + const splitReward = this.itemHelper.splitStackIntoSeparateItems(rewardToAdd); + itemAndChildrenToSendToPlayer.push(...splitReward); } else {