aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/features
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-08-12 21:43:03 -0400
committerbowser0000 <bowser0000@gmail.com>2022-08-12 21:43:03 -0400
commita89ec05fdba403946df8a0654cfcdfcdee160bbc (patch)
tree444cbc6abd78643abffe5a5af51525f8e775b9d7 /src/main/java/me/Danker/features
parentd89f15d11550f3c3b1a5fdc447a1079035b1e759 (diff)
downloadSkyblockMod-a89ec05fdba403946df8a0654cfcdfcdee160bbc.tar.gz
SkyblockMod-a89ec05fdba403946df8a0654cfcdfcdee160bbc.tar.bz2
SkyblockMod-a89ec05fdba403946df8a0654cfcdfcdee160bbc.zip
Fix total magmafish not counting stack size
Oops
Diffstat (limited to 'src/main/java/me/Danker/features')
-rw-r--r--src/main/java/me/Danker/features/FilletMagmafish.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/features/FilletMagmafish.java b/src/main/java/me/Danker/features/FilletMagmafish.java
index 06a35dc..0d24ddd 100644
--- a/src/main/java/me/Danker/features/FilletMagmafish.java
+++ b/src/main/java/me/Danker/features/FilletMagmafish.java
@@ -108,10 +108,12 @@ public class FilletMagmafish {
ItemStack[] inv = Minecraft.getMinecraft().thePlayer.inventory.mainInventory;
for (ItemStack stack : inv) {
+ if (stack == null) continue;
+
String id = Utils.getSkyblockItemID(stack);
if (id == null) continue;
- total += Optional.ofNullable(fillet.get(id)).orElse(0);
+ total += Optional.ofNullable(fillet.get(id)).orElse(0) * stack.stackSize;
}
} else {
total = 0;