From 5d4a8d5859ec8532b5b515d67aaa8219e65dd004 Mon Sep 17 00:00:00 2001 From: imbalanced Date: Mon, 21 Jan 2019 11:53:02 -0800 Subject: [PATCH] Fix Storage.IsLocked error (#1086) Fix Storage.IsLocked error by checking for both parent type and gid --- d2bs/kolbot/libs/common/Storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2bs/kolbot/libs/common/Storage.js b/d2bs/kolbot/libs/common/Storage.js index 9764986ad..d91fc1414 100644 --- a/d2bs/kolbot/libs/common/Storage.js +++ b/d2bs/kolbot/libs/common/Storage.js @@ -63,7 +63,7 @@ var Container = function (name, width, height, location) { } // Make sure the item is ours - if (!item.getParent() || item.getParent().gid !== me.gid) { + if (!item.getParent() || item.getParent().type !== me.type || item.getParent().gid !== me.gid) { return false; }