diff options
author | heyngra <heyngra.wspolpraca@gmail.com> | 2023-06-27 10:32:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 18:32:38 +1000 |
commit | 2d05e43d0cac6221f932da92e6fed4db11da244a (patch) | |
tree | 4e7af17171bf15625b1b5aab1e76230d292db25b /src/main/java/io | |
parent | ba9c370c88f02b3bffff97d0a347e1c29f847d02 (diff) | |
download | NotEnoughUpdates-2d05e43d0cac6221f932da92e6fed4db11da244a.tar.gz NotEnoughUpdates-2d05e43d0cac6221f932da92e6fed4db11da244a.tar.bz2 NotEnoughUpdates-2d05e43d0cac6221f932da92e6fed4db11da244a.zip |
Change kismet in dungeon profits to bazaar (#737)
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java index a31e54c4..f355d5d7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java @@ -777,7 +777,8 @@ public class RenderListener { } } } - double kismetPrice = neu.manager.auctionManager.getLowestBin("KISMET_FEATHER"); + JsonObject kismetBazaar = neu.manager.auctionManager.getBazaarInfo("KISMET_FEATHER"); + double kismetPrice = (kismetBazaar != null && kismetBazaar.has("curr_buy")) ? kismetBazaar.get("curr_buy").getAsFloat() : 0; String kismetStr = EnumChatFormatting.RED + formatCoins(kismetPrice) + " coins"; if (neu.config.dungeons.useKismetOnDungeonProfit) profitLossBIN = kismetUsed ? profitLossBIN - kismetPrice : profitLossBIN; |