aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
diff options
context:
space:
mode:
authorAscynx <78341107+Ascynx@users.noreply.github.com>2022-10-20 02:42:25 +0200
committerGitHub <noreply@github.com>2022-10-20 02:42:25 +0200
commit4a2fd29dc58c4eff427571409c03141f13272be9 (patch)
tree36eab744dc5c1f8a609389281ee685178dffa6af /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
parent498b8d8a7dbef859cd5829fceee7f83dbe69d870 (diff)
downloadnotenoughupdates-4a2fd29dc58c4eff427571409c03141f13272be9.tar.gz
notenoughupdates-4a2fd29dc58c4eff427571409c03141f13272be9.tar.bz2
notenoughupdates-4a2fd29dc58c4eff427571409c03141f13272be9.zip
If above 100% of price will show actual added percentage (#369)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
index ad9df7af..75813700 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java
@@ -234,7 +234,7 @@ public class AuctionBINWarning extends GuiElement {
);
TextRenderUtils.drawStringCenteredScaledMaxWidth(
"\u00a76" + sellingPriceStr + "\u00a7r coins?" +
- (lowestPrice > 0 ? "(\u00a7" + (isALoss ? "c-" : "a+") + buyPercentage + "%\u00a7r)" : ""),
+ (lowestPrice > 0 ? "(\u00a7" + (isALoss ? "c-" : "a+") + (buyPercentage >= 100 ? buyPercentage - 100 : buyPercentage) + "%\u00a7r)" : ""),
Minecraft.getMinecraft().fontRendererObj,
width / 2,
height / 2 - 45 + 59,