diff options
author | syeyoung <cyong06@naver.com> | 2021-02-13 21:38:22 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-02-13 21:38:22 +0900 |
commit | 3bbe67ecd993bac9e32e7f303ce84b2fa5c7cda4 (patch) | |
tree | 8505eb72ebb6ea5b8238ab7174e56123871c6b87 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/etc | |
parent | acbdeb579e4c64d96b9274996e2a21659385fcfe (diff) | |
download | Skyblock-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.java | 6 |
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); } }); |