Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Commit 4e551f1

Browse files
author
Explv
committed
- Perform "Withdraw All" action if target amount of item requirement matches the number of empty slots in the inventory
1 parent 0fa9442 commit 4e551f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.explv.explv_osbot_manager</groupId>
88
<artifactId>explvs_aio</artifactId>
9-
<version>v3.1.9</version>
9+
<version>v3.1.10</version>
1010
<repositories>
1111
<repository>
1212
<id>local-repo</id>

src/main/java/activities/banking/ItemReqBanking.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private boolean withdrawItemReq(final ItemReq itemReq) {
249249
return false;
250250
}
251251
}
252-
if (targetAmount == ItemReq.QUANTITY_ALL) {
252+
if (targetAmount == getInventory().getEmptySlots()) {
253253
getBank().withdrawAll(itemReq.getName());
254254
} else {
255255
int requiredTargetAmount = reqTargetAmountMap.get(itemReq) - amountOnPlayer;

src/main/java/script/AIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@ScriptManifest(author = "Explv", name = "Explv's AIO " + AIO.VERSION, info = "AIO", version = 0, logo = "http://i.imgur.com/58Zz0fb.png")
2929
public class AIO extends Script {
3030

31-
static final String VERSION = "v3.1.9";
31+
static final String VERSION = "v3.1.10";
3232

3333
private Gui gui;
3434
private Paint paint;

0 commit comments

Comments
 (0)