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

Commit 2c6750b

Browse files
ExplvExplv
authored andcommitted
Fix #56
1 parent b6f5168 commit 2c6750b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

AIO/src/org/aio/activities/skills/crafting/CraftingActivity.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ public void runActivity() throws InterruptedException {
5454
getWalking().webWalk(location.getArea());
5555
} else if (makeAllInterface.isMakeAllScreenOpen()) {
5656
if (makeAllInterface.makeAll()) {
57-
FINISHED_CRAFTING_SLEEP.sleep();
57+
if (craftingItem.type == CraftingType.POTTERY && getInventory().contains("Soft clay")) {
58+
Sleep.sleepUntil(() -> !getInventory().contains("Soft clay") || getDialogues().isPendingContinuation(), 60_000, 600);
59+
} else {
60+
FINISHED_CRAFTING_SLEEP.sleep();
61+
}
5862
}
5963
} else {
6064
switch (craftingItem.type) {
@@ -146,7 +150,7 @@ private void makeXInteract(String object, String interaction) {
146150
private void makeXUse(String object, String item) {
147151
if (!item.equals(getInventory().getSelectedItemName())) {
148152
getInventory().getItem(item).interact("Use");
149-
} else if (getObjects().closest(object).interact()) {
153+
} else if (getObjects().closest(object).interact("Use")) {
150154
MAKE_ALL_INTERFACE_OPEN_SLEEP.sleep();
151155
}
152156
}

0 commit comments

Comments
 (0)