From d09bdde7b82ed8c88b93eed28b1224074426e1d0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 25 Feb 2023 18:19:33 +0100 Subject: Fixed jack o lantern price --- src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 4e285e112..0d0877312 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -19,6 +19,7 @@ object NEUItems { return itemNameCache[itemName]!! } // We love hypixel naming moments + // TODO remove workaround val name = if (itemName.contains("Jack o' Lantern")) { itemName.replace("Jack o' Lantern", "Jack o'Lantern") } else itemName @@ -35,7 +36,12 @@ object NEUItems { } fun getPrice(internalName: String, useSellingPrice: Boolean = false): Double { - return manager.auctionManager.getBazaarOrBin(internalName, useSellingPrice) + val result = manager.auctionManager.getBazaarOrBin(internalName, useSellingPrice) + // TODO remove workaround + if (internalName == "JACK_O_LANTERN" && result == -1.0) { + return getPrice("PUMPKIN") + 1 + } + return result } fun getItemStack(internalName: String): ItemStack { -- cgit