From 4ec9ffc04af4ab964af8dc29fdcfc51079655678 Mon Sep 17 00:00:00 2001 From: Alexia Date: Sat, 17 Feb 2024 13:35:48 +0100 Subject: Don't show NPC sell price if it's 0 (#1023) Sometimes returned by Hypixel API instead of null. --- .../java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/io') 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)); -- cgit