aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-16 17:35:01 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-16 17:35:01 +0200
commit9b7ee0259912ad1c6f7522f0dc2d158dd272b726 (patch)
treea28410a17d2352eb3999b0979e0e501af915d0e4 /src
parentb92a9f8f757ee6bf9e7e7c98eeab349ac01f9064 (diff)
downloadNotEnoughUpdates-9b7ee0259912ad1c6f7522f0dc2d158dd272b726.tar.gz
NotEnoughUpdates-9b7ee0259912ad1c6f7522f0dc2d158dd272b726.tar.bz2
NotEnoughUpdates-9b7ee0259912ad1c6f7522f0dc2d158dd272b726.zip
added number to stuff with amount of 1
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java
index ff2024d4..e3603618 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/render/MinionHelperOverlayHover.java
@@ -237,11 +237,10 @@ public class MinionHelperOverlayHover {
}
String name = NotEnoughUpdates.INSTANCE.manager.getDisplayName(internalName);
- String amountText = amount != 1 ? amount + "§7x " : "";
long price = manager.getPriceCalculation().getPrice(internalName);
String priceFormat = manager.getPriceCalculation().formatCoins(
price * amount);
- lines.add(" §8- §a" + amountText + "§f" + name + " " + priceFormat);
+ lines.add(" §8- §a" + amount + "§7x §f" + name + " " + priceFormat);
}
}