From 6e435b5595ea5752d5933bc908971ebcc92e165b Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sun, 13 Dec 2020 18:05:12 -0500 Subject: Fix Click in Order Helper --- src/main/java/me/Danker/DankersSkyblockMod.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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); } -- cgit