diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-10 15:51:23 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-10 15:51:23 +0200 |
commit | 2bb1f6e14426222faee8f9840291871f28f58020 (patch) | |
tree | d903a21e5e2d6c2dc30eb256f1bb622e6b7624d5 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 75f233e2f7042e361c4029d8cf704c51685e217c (diff) | |
download | skyhanni-2bb1f6e14426222faee8f9840291871f28f58020.tar.gz skyhanni-2bb1f6e14426222faee8f9840291871f28f58020.tar.bz2 skyhanni-2bb1f6e14426222faee8f9840291871f28f58020.zip |
Fixed non bazaar items + wisp ice flavored water not working
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt index b5c287d5a..1c5c76d92 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SlayerAPI.kt @@ -66,7 +66,7 @@ object SlayerAPI { } val amountFormat = if (amount != 1) "§7${amount}x §r" else "" - val displayName = NEUItems.getItemStack(internalName).nameWithEnchantment + val displayName = getNameWithEnchantmentFor(internalName) val price = NEUItems.getPrice(internalName) val npcPrice = BazaarApi.getBazaarDataByInternalName(internalName)?.npcPrice ?: 0.0 @@ -81,6 +81,13 @@ object SlayerAPI { return result } + fun getNameWithEnchantmentFor(internalName: String): String? { + if (internalName == "WISP_POTION") { + return "§fWisp's Ice-Flavored Water" + } + return NEUItems.getItemStack(internalName).nameWithEnchantment + } + @SubscribeEvent fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return |