From c2517a08d5cb83deb91047f0e09c815947ef7ef5 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 17 Mar 2023 12:49:52 +0100 Subject: Fixed Tightly-Tied Hay bale in bazaar --- src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt | 6 +++++- .../java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt index e22bc1c03..0f6817dd1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt @@ -28,7 +28,11 @@ class BazaarApi { if (newName.contains("Turbo-Cacti ")) { newName = newName.replace("Cacti", "Cactus") } - return newName.replace("-", " ").removeColor() + newName = newName.removeColor() + if (!name.contains("Tightly-Tied")) { + newName = newName.replace("-", " ") + } + return newName } fun getBazaarDataForName(name: String): BazaarData? { diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt index 0af974239..8fbb9b0c3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt @@ -51,6 +51,11 @@ class BazaarOrderHelper { if (data == null) { LorenzUtils.debug("Bazaar data is null!") println("Bazaar data is null for '$rawName'/'$bazaarName'") +// for (key in BazaarApi.bazaarMap.keys) { +// if (key.lowercase().contains("hay")) { +// println("key: '$key'") +// } +// } continue } -- cgit