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

Commit f0413c9

Browse files
ExplvExplv
authored andcommitted
Fix for MakeAllInterface selecting incorrect option.
Fix "Plant pot" widget name
1 parent 2c6750b commit f0413c9

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public enum CraftingItem {
1919
POT ("Pot", "Pot", CraftingType.POTTERY, 1, 12.6f, new ItemReq("Soft clay", 1)),
2020
PIE_DISH ("Pie Dish", "Pie Dish", CraftingType.POTTERY, 7, 25, new ItemReq("Soft clay", 1)),
2121
BOWL ("Bowl", "Bowl", CraftingType.POTTERY, 8, 33, new ItemReq("Soft clay", 1)),
22-
PLANT_POT ("Plantpot", "Plantpot", CraftingType.POTTERY, 19, 37.5f, new ItemReq("Soft clay", 1)),
22+
PLANT_POT ("Plant pot", "Plant pot", CraftingType.POTTERY, 19, 37.5f, new ItemReq("Soft clay", 1)),
2323
POT_LID ("Pot lid", "Pot Lid", CraftingType.POTTERY, 25, 40, new ItemReq("Soft clay", 1)),
2424

2525
LEATHER_GLOVES ("Leather gloves", "Leather gloves", CraftingType.ARMOUR, 1, 13.8f, new ItemReq("Needle"), new ItemReq("Leather", 1), new ItemReq("Thread", 1).setStackable()),

AIO/src/org/aio/script/AIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.util.List;
2626
import java.util.Optional;
2727

28-
@ScriptManifest(author = "Explv", name = "Explv's AIO v3.6", info = "AIO", version = 3.6, logo = "http://i.imgur.com/58Zz0fb.png")
28+
@ScriptManifest(author = "Explv", name = "Explv's AIO v3.8", info = "AIO", version = 3.8, logo = "http://i.imgur.com/58Zz0fb.png")
2929
public class AIO extends Script {
3030

3131
private Gui gui;

AIO/src/org/aio/util/MakeAllInterface.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,14 @@ private int getItemOptionNumber() {
6666
widget.getBounds().getCenterX(),
6767
makeWidget.get().getBounds().getCenterY()
6868
)
69-
)
69+
) &&
70+
widget.getAbsY() > makeWidget.get().getAbsY()
7071
);
7172

72-
return optionNumberWidget != null ? Integer.parseInt(optionNumberWidget.getMessage()) : 1;
73+
if (optionNumberWidget == null) {
74+
return -1;
75+
}
76+
77+
return Integer.parseInt(optionNumberWidget.getMessage());
7378
}
7479
}

0 commit comments

Comments
 (0)