aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-07-29 17:15:30 +0200
committerLorenz <lo.scherf@gmail.com>2022-07-29 17:15:30 +0200
commitee9cef814b12de60cc25763232c631f6ab5af4cc (patch)
tree3a4b8cab052a8754aa25e094c13b4a8c03b0abb2 /src/main/java/io
parentc85c3f9d6ab15bb704515d2fb8d3cd1d7c0fc0c8 (diff)
downloadNotEnoughUpdates-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.java6
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) {