diff options
| author | Ascynx <78341107+Ascynx@users.noreply.github.com> | 2022-10-20 02:42:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-20 02:42:25 +0200 |
| commit | 4a2fd29dc58c4eff427571409c03141f13272be9 (patch) | |
| tree | 36eab744dc5c1f8a609389281ee685178dffa6af /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java | |
| parent | 498b8d8a7dbef859cd5829fceee7f83dbe69d870 (diff) | |
| download | notenoughupdates-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.java | 2 |
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, |
