diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-12-28 05:39:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 19:39:57 +0100 |
commit | de2b44e25e513592e36689cd2f50e932082dc37c (patch) | |
tree | 59dd95743b3d86c15f03f876606babfe2505ab0e /src/main/java/io | |
parent | 95d6a0c52af4511a90ebde2fe339f3f31cc5b9ae (diff) | |
download | NotEnoughUpdates-de2b44e25e513592e36689cd2f50e932082dc37c.tar.gz NotEnoughUpdates-de2b44e25e513592e36689cd2f50e932082dc37c.tar.bz2 NotEnoughUpdates-de2b44e25e513592e36689cd2f50e932082dc37c.zip |
Fix aucion profit taking too much tax (#525)
1% tax added for auctions collected above 1M coins
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionProfit.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionProfit.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionProfit.java index 88ca0cc8..82c392e4 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionProfit.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionProfit.java @@ -104,7 +104,7 @@ public class AuctionProfit { int coins = tryParse(EnumChatFormatting.getTextWithoutFormattingCodes(coinsString.trim())); if (coins != 0) { if (coins > 1000000) { - coins /= 1.1; + coins /= 1.01; } coinsToCollect += coins; } @@ -113,7 +113,7 @@ public class AuctionProfit { if (line.contains("§7Status: §aSold!") || line.contains("§7Status: §aEnded!")) { if (coinsToCheck != 0) { if (coinsToCheck > 1000000) { - coinsToCheck /= 1.1; + coinsToCheck /= 1.01; } coinsToCollect += coinsToCheck; coinsToCheck = 0; |