aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/features/FilletMagmafish.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/features/FilletMagmafish.java')
-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;