diff options
author | Alexia <me@alexia.lol> | 2024-02-17 13:35:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 13:35:48 +0100 |
commit | 4ec9ffc04af4ab964af8dc29fdcfc51079655678 (patch) | |
tree | b54ac110dbfd82657018e99d2e38e36e598dc2ea | |
parent | b4d7ef67fa55b571ae7637d4bc5df99894028e09 (diff) | |
download | NotEnoughUpdates-4ec9ffc04af4ab964af8dc29fdcfc51079655678.tar.gz NotEnoughUpdates-4ec9ffc04af4ab964af8dc29fdcfc51079655678.tar.bz2 NotEnoughUpdates-4ec9ffc04af4ab964af8dc29fdcfc51079655678.zip |
Don't show NPC sell price if it's 0 (#1023)
Sometimes returned by Hypixel API instead of null.
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java index 84dc8db2..c149cfe2 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java @@ -459,7 +459,7 @@ public class ItemPriceInformation { } } Double npcSellPrice = HypixelItemAPI.getNPCSellPrice(internalname); - if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.npcSellPrice && npcSellPrice != null) { + if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.npcSellPrice && npcSellPrice != null && npcSellPrice != 0) { if (!added) tooltip.add(""); tooltip.add(formatPrice("NPC Sell Price: ", npcSellPrice * stackMultiplier)); |