diff options
Diffstat (limited to 'src/main/java/me/Danker/features')
-rw-r--r-- | src/main/java/me/Danker/features/FilletMagmafish.java | 4 |
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; |