aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/DankersSkyblockMod.java
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-18 09:25:57 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-18 09:25:57 -0500
commit9aad7c40eb5fe681f05d995645122a1c33c7088a (patch)
treefdc5b1a1b8ca63ce1cb68537560212cdde4f15d1 /src/main/java/me/Danker/DankersSkyblockMod.java
parent676ee2ca5ad1de111d3fb68e2db19f9d6ea720db (diff)
downloadSkyblockMod-9aad7c40eb5fe681f05d995645122a1c33c7088a.tar.gz
SkyblockMod-9aad7c40eb5fe681f05d995645122a1c33c7088a.tar.bz2
SkyblockMod-9aad7c40eb5fe681f05d995645122a1c33c7088a.zip
Highlight next Click in Order slot in aqua
Diffstat (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 7f9d57c..529c392 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -134,7 +134,7 @@ public class DankersSkyblockMod
static int pickBlockBind;
static boolean pickBlockBindSwapped = false;
static String terminalColorNeeded;
- static int[] terminalNumberNeeded = new int[2];
+ static int[] terminalNumberNeeded = new int[4];
static double dungeonStartTime = 0;
static double bloodOpenTime = 0;
@@ -2871,6 +2871,7 @@ public class DankersSkyblockMod
if (ToggleCommand.clickInOrderToggled && chestName.equals("Click in order!")) {
if(terminalNumberNeeded[0] == 0) terminalNumberNeeded[0] = 15;
+ if(terminalNumberNeeded[2] == 0) terminalNumberNeeded[2] = 15;
for(int i = 10; i <= 25; i++) {
if (i == 17 || i == 18) continue;
ItemStack prevStack = invSlots.get(terminalNumberNeeded[1]).getStack();
@@ -2885,6 +2886,9 @@ public class DankersSkyblockMod
if (itemStack.stackSize < terminalNumberNeeded[0]) {
terminalNumberNeeded[0] = itemStack.stackSize;
terminalNumberNeeded[1] = i;
+ } else if (itemStack.stackSize == terminalNumberNeeded[0] + 1) {
+ terminalNumberNeeded[2] = itemStack.stackSize;
+ terminalNumberNeeded[3] = i;
}
}
}
@@ -3309,6 +3313,11 @@ public class DankersSkyblockMod
break;
case "Click in order!":
+
+ if (mouseSlot.getSlotIndex() > 35) {
+ break;
+ }
+
if((item.getItem() != Item.getItemFromBlock(Blocks.stained_glass_pane))) {
shouldCancel = true;
break;
@@ -3408,7 +3417,7 @@ public class DankersSkyblockMod
chronomatronMouseClicks = 0;
experimentTableSlots = new ItemStack[54];
terminalColorNeeded = null;
- terminalNumberNeeded = new int[2];
+ terminalNumberNeeded = new int[4];
}
@SubscribeEvent
@@ -3500,6 +3509,10 @@ public class DankersSkyblockMod
if(ToggleCommand.clickInOrderToggled && displayName.equals("Click in order!")) {
Slot slot = invSlots.get(terminalNumberNeeded[1]);
Utils.drawOnSlot(chestSize, slot.xDisplayPosition, slot.yDisplayPosition, new Color(255, 0, 221, 255).getRGB());
+ Slot nextSlot = invSlots.get(terminalNumberNeeded[3]);
+ if (nextSlot != slot && nextSlot.getSlotIndex() != 0) {
+ Utils.drawOnSlot(chestSize, nextSlot.xDisplayPosition, nextSlot.yDisplayPosition, new Color(11, 239, 231, 255).getRGB());
+ }
}
if (ToggleCommand.ultrasequencerToggled && displayName.startsWith("Ultrasequencer (")) {