From 3d70eee959182849fce2d2a2a65dda1095fdf845 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Mon, 3 Dec 2018 23:09:59 +0100 Subject: [PATCH] item: increase parent length only if parentSub=null --- structs/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs/Item.js b/structs/Item.js index e1887d5f..d704cffb 100644 --- a/structs/Item.js +++ b/structs/Item.js @@ -441,7 +441,7 @@ export class Item { } } // adjust the length of parent - if (parent.length !== undefined && this._countable) { + if (parentSub === null && parent.length !== undefined && this._countable) { parent.length += this._length } if (parent._deleted) {