aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-13 21:38:22 +0900
committersyeyoung <cyong06@naver.com>2021-02-13 21:38:22 +0900
commit3bbe67ecd993bac9e32e7f303ce84b2fa5c7cda4 (patch)
tree8505eb72ebb6ea5b8238ab7174e56123871c6b87 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc
parentacbdeb579e4c64d96b9274996e2a21659385fcfe (diff)
downloadSkyblock-Dungeons-Guide-3bbe67ecd993bac9e32e7f303ce84b2fa5c7cda4.tar.gz
Skyblock-Dungeons-Guide-3bbe67ecd993bac9e32e7f303ce84b2fa5c7cda4.tar.bz2
Skyblock-Dungeons-Guide-3bbe67ecd993bac9e32e7f303ce84b2fa5c7cda4.zip
I commit
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureTooltipPrice.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureTooltipPrice.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureTooltipPrice.java
index eebb934b..91a7bc6d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureTooltipPrice.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc/FeatureTooltipPrice.java
@@ -45,14 +45,14 @@ public class FeatureTooltipPrice extends SimpleFeature implements TooltipListene
public int compare(String o1, String o2) {
String id2 = id + "::" + o1 + "-" + enchants.getInteger(o1);
AhUtils.AuctionData auctionData = AhUtils.auctions.get(id2);
- int price1 = (auctionData == null) ? 0 : auctionData.lowestBin;
+ long price1 = (auctionData == null) ? 0 : auctionData.lowestBin;
String id3 = id + "::" + o2 + "-" + enchants.getInteger(o2);
AhUtils.AuctionData auctionData2 = AhUtils.auctions.get(id3);
- int price2 = (auctionData2 == null) ? 0 : auctionData2.lowestBin;
+ long price2 = (auctionData2 == null) ? 0 : auctionData2.lowestBin;
return (compare2(price1, price2) == 0) ? o1.compareTo(o2) : compare2(price1, price2);
}
- public int compare2(int y, int x) {
+ public int compare2(long y, long x) {
return (x < y) ? -1 : ((x == y) ? 0 : 1);
}
});