aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
diff options
context:
space:
mode:
authorLulonaut <67191924+Lulonaut@users.noreply.github.com>2022-08-13 10:14:39 +0200
committerGitHub <noreply@github.com>2022-08-13 18:14:39 +1000
commit2641d9a09af3a7c3cdb130de34c5561a9b30f7d4 (patch)
treee3a0c605abf9bbd787b29cd602d45c87efade9a5 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/BazaarSacksProfit.java
parent3571d2bba813a0f260f0d0356da0dd0c19660b00 (diff)
downloadnotenoughupdates-2641d9a09af3a7c3cdb130de34c5561a9b30f7d4.tar.gz
notenoughupdates-2641d9a09af3a7c3cdb130de34c5561a9b30f7d4.tar.bz2
notenoughupdates-2641d9a09af3a7c3cdb130de34c5561a9b30f7d4.zip
quiver info in pv (#210)
Co-authored-by: nopo <noahogno@gmail.com> Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>
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 {