aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-13 18:05:12 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-13 18:05:12 -0500
commit6e435b5595ea5752d5933bc908971ebcc92e165b (patch)
tree47404d2a6359408cb18ccbcb81ac989622a759e3
parent2d899b43f78bf15b697de0335b7b9bd3a161669a (diff)
downloadSkyblockMod-6e435b5595ea5752d5933bc908971ebcc92e165b.tar.gz
SkyblockMod-6e435b5595ea5752d5933bc908971ebcc92e165b.tar.bz2
SkyblockMod-6e435b5595ea5752d5933bc908971ebcc92e165b.zip
Fix Click in Order Helper
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 6355835..0dec910 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -3093,7 +3093,7 @@ public class DankersSkyblockMod
shouldCancel = true;
break;
}
- int needed = terminalNumberNeeded[1];
+ int needed = terminalNumberNeeded[0];
if(needed == 0) break;
shouldCancel = needed != -1 && item.stackSize != needed ;
break;
@@ -3278,13 +3278,13 @@ public class DankersSkyblockMod
if (itemStack == null) continue;
if (itemStack.getItem() != Item.getItemFromBlock(Blocks.stained_glass_pane)) continue;
if (itemStack.getItemDamage() != 14) continue;
- if (itemStack.stackSize > terminalNumberNeeded[0]) {
+ if (itemStack.stackSize < terminalNumberNeeded[0]) {
terminalNumberNeeded[0] = itemStack.stackSize;
terminalNumberNeeded[1] = i;
}
}
if(terminalNumberNeeded[0] == 0) return;
- Slot slot = invSlots.get(terminalNumberNeeded[0]);
+ Slot slot = invSlots.get(terminalNumberNeeded[1]);
Utils.drawOnSlot(chestSize, slot.xDisplayPosition, slot.yDisplayPosition, 0xBF40FF40);
}