diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-14 19:15:53 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-14 19:15:53 -0500 |
commit | 120264a46d06a2dcc9e4f75e39c2411f98c24427 (patch) | |
tree | 44789ed59cd1371e0dd65c6d019e87068c968330 | |
parent | 3deb21c90e4d66b669c123d170c36d1a93d8243c (diff) | |
download | SkyblockMod-120264a46d06a2dcc9e4f75e39c2411f98c24427.tar.gz SkyblockMod-120264a46d06a2dcc9e4f75e39c2411f98c24427.tar.bz2 SkyblockMod-120264a46d06a2dcc9e4f75e39c2411f98c24427.zip |
Fixed click in order
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 69f54cf..b55131e 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -2741,13 +2741,13 @@ public class DankersSkyblockMod } if (ToggleCommand.clickInOrderToggled && chestName.equals("Click in order!")) { - if(terminalNumberNeeded[0] == 0) terminalNumberNeeded[0] = 14; + if(terminalNumberNeeded[0] == 0) terminalNumberNeeded[0] = 15; for(int i = 10; i <= 25; i++) { if (i == 17 || i == 18) continue; ItemStack prevStack = invSlots.get(terminalNumberNeeded[1]).getStack(); - if (prevStack == null) terminalNumberNeeded[0] = 14; - else if (prevStack.getItem() != Item.getItemFromBlock(Blocks.stained_glass_pane)) terminalNumberNeeded[0] = 14; - else if (prevStack.getItemDamage() == 5) terminalNumberNeeded[0] = 14; + if (prevStack == null) terminalNumberNeeded[0] = 15; + else if (prevStack.getItem() != Item.getItemFromBlock(Blocks.stained_glass_pane)) terminalNumberNeeded[0] = 15; + else if (prevStack.getItemDamage() == 5) terminalNumberNeeded[0] = 15; ItemStack itemStack = invSlots.get(i).getStack(); if (itemStack == null) continue; |