aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
index c323cd2e..3137fb90 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
@@ -146,6 +146,8 @@ public class BazaarSacksProfit {
map.put("§a" + formatter.format(amount) + "§7x §f" + name + " §7for §6" + priceFormat + " coins", extraPrice);
}
+
+ event.toolTip.add(4, "");
if (showSellOrderPrice) {
event.toolTip.add(4, "§7Sell order price: §6" + formatter.format(totalPrice));
} else {
@@ -153,14 +155,18 @@ public class BazaarSacksProfit {
}
event.toolTip.add(4, "");
+ event.toolTip.removeIf(line -> line.equals("§5§o"));
+ int index = 4;
for (String name : invalidNames) {
+ index++;
event.toolTip.add(4, name + " §cMissing repo data!");
}
for (String text : TrophyRewardOverlay.sortByValue(map).keySet()) {
+ index++;
event.toolTip.add(4, text);
}
+ event.toolTip.add(index, "");
- event.toolTip.add("");
if (!showSellOrderPrice) {
event.toolTip.add("§8[Press SHIFT to show sell order price]");
} else {