diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-07-29 17:15:30 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-07-29 17:15:30 +0200 |
commit | ee9cef814b12de60cc25763232c631f6ab5af4cc (patch) | |
tree | 3a4b8cab052a8754aa25e094c13b4a8c03b0abb2 /src/main/java/io | |
parent | c85c3f9d6ab15bb704515d2fb8d3cd1d7c0fc0c8 (diff) | |
download | NotEnoughUpdates-ee9cef814b12de60cc25763232c631f6ab5af4cc.tar.gz NotEnoughUpdates-ee9cef814b12de60cc25763232c631f6ab5af4cc.tar.bz2 NotEnoughUpdates-ee9cef814b12de60cc25763232c631f6ab5af4cc.zip |
using average item price instead of lowest bin
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java index d7bb0e1e..5bbdf090 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java @@ -173,7 +173,7 @@ public class MinionHelperManager { upgradeCost += calculateUpgradeCosts(getMinionById(internalName).getMinionSource(), false); } else { if (!cheapItems.contains(internalName)) { - long lowestBin = NotEnoughUpdates.INSTANCE.manager.auctionManager.getLowestBin(internalName); + double lowestBin = NotEnoughUpdates.INSTANCE.manager.auctionManager.getItemAvgBin(internalName); upgradeCost += lowestBin * amount; } } @@ -242,8 +242,8 @@ public class MinionHelperManager { int has = highestCollectionTier.get(internalName); return has >= need; - } else { - Utils.addChatMessage("§cInvalid hypixel collection name: '" + internalName + "'"); +// } else { +// Utils.addChatMessage("§cInvalid hypixel collection name: '" + internalName + "'"); } } else if (requirement instanceof SlayerRequirement) { |