diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-17 12:49:52 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-17 12:49:52 +0100 |
commit | c2517a08d5cb83deb91047f0e09c815947ef7ef5 (patch) | |
tree | cb712a61065417d8162e687bda36a2e90d259dff /src/main/java | |
parent | d9832d0454e79de6565112c193b256774e0828c3 (diff) | |
download | skyhanni-c2517a08d5cb83deb91047f0e09c815947ef7ef5.tar.gz skyhanni-c2517a08d5cb83deb91047f0e09c815947ef7ef5.tar.bz2 skyhanni-c2517a08d5cb83deb91047f0e09c815947ef7ef5.zip |
Fixed Tightly-Tied Hay bale in bazaar
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt | 6 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarOrderHelper.kt | 5 |
2 files changed, 10 insertions, 1 deletions
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 } |