diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-07-29 10:41:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-29 10:41:49 +0200 |
| commit | bd1c17841e40a0bc3b666796431cbe84d2cd203d (patch) | |
| tree | 30e5cb3cb89ff41f2db037b34703504c00f7a4f2 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures | |
| parent | c27583484181a9829d515a1984654fdd7554aa00 (diff) | |
| download | notenoughupdates-bd1c17841e40a0bc3b666796431cbe84d2cd203d.tar.gz notenoughupdates-bd1c17841e40a0bc3b666796431cbe84d2cd203d.tar.bz2 notenoughupdates-bd1c17841e40a0bc3b666796431cbe84d2cd203d.zip | |
changed int to long and float to double in item price logic (#197)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java | 8 |
1 files changed, 4 insertions, 4 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 c52f8968..0d2d863d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/AuctionBINWarning.java @@ -54,9 +54,9 @@ public class AuctionBINWarning extends GuiElement { private boolean showWarning = false; private List<String> sellingTooltip; private String sellingName; - private int sellingPrice; - private int lowestPrice; - private int buyPercentage; + private long sellingPrice; + private long lowestPrice; + private long buyPercentage; private int sellStackAmount; private boolean isALoss = true; @@ -96,7 +96,7 @@ public class AuctionBINWarning extends GuiElement { if (priceMatcher.matches()) { try { - sellingPrice = Integer.parseInt(priceMatcher.group(1).replace(",", "")); + sellingPrice = Long.parseLong(priceMatcher.group(1).replace(",", "")); } catch (NumberFormatException ignored) { } } |
