aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-13 20:20:25 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-13 20:20:25 -0500
commit66f06282dd87ed10f9fc6a0242efc9312ab38279 (patch)
treef806edf7e3fe56d99975b626bfaf4e0da61786ba
parentbf431c05fa24157930ee13a59ec191c1103f31b0 (diff)
downloadSkyblockMod-66f06282dd87ed10f9fc6a0242efc9312ab38279.tar.gz
SkyblockMod-66f06282dd87ed10f9fc6a0242efc9312ab38279.tar.bz2
SkyblockMod-66f06282dd87ed10f9fc6a0242efc9312ab38279.zip
Actually fixed it (hopefully)
-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 fa06360..01f7f23 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -3296,9 +3296,9 @@ public class DankersSkyblockMod
ItemStack itemStack = invSlots.get(i).getStack();
if (itemStack == null) continue;
if (itemStack.getItem() != Item.getItemFromBlock(Blocks.stained_glass_pane)) continue;
- if (itemStack.getItemDamage() != 14) continue;
- if (itemStack.stackSize < terminalNumberNeeded[0]) {
- terminalNumberNeeded[0] = itemStack.stackSize;
+ if (itemStack.getItemDamage() != 5) continue;
+ if (itemStack.stackSize >= terminalNumberNeeded[0]) {
+ terminalNumberNeeded[0] = itemStack.stackSize + 1;
terminalNumberNeeded[1] = i;
}
}