Skip to content

Commit db1a452

Browse files
committed
patch: Open stash if not opened when moving from stash -> invo
1 parent aedd0d7 commit db1a452

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

d2bs/kolbot/libs/core/Storage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@
479479

480480
// Make sure stash is open
481481
if (this.location === sdk.storage.Stash && !Town.openStash()) return false;
482+
if (this.location === sdk.storage.Inventory && item.location === sdk.storage.Stash && !Town.openStash()) {
483+
return false;
484+
}
482485

483486
const [orgX, orgY, orgLoc] = [item.x, item.y, item.location];
484487
const moveItem = (x, y, location) => {

0 commit comments

Comments
 (0)