diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-25 18:19:33 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-25 18:19:33 +0100 |
commit | d09bdde7b82ed8c88b93eed28b1224074426e1d0 (patch) | |
tree | 4cd84cb571950c946b5915f983293f7f1f633cc5 /src/main/java/at | |
parent | a9c392869516313a424107935c9aff62a8d7ad11 (diff) | |
download | skyhanni-d09bdde7b82ed8c88b93eed28b1224074426e1d0.tar.gz skyhanni-d09bdde7b82ed8c88b93eed28b1224074426e1d0.tar.bz2 skyhanni-d09bdde7b82ed8c88b93eed28b1224074426e1d0.zip |
Fixed jack o lantern price
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 8 |
1 files changed, 7 insertions, 1 deletions
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 { |