aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-02 11:07:55 +0200
committerGitHub <noreply@github.com>2024-08-02 11:07:55 +0200
commit38505f7d513368327028e3d80213432beebd174f (patch)
tree963a4bbd1c396fde52768a4e966875f6343a06cf /src/main
parent7739e2986b154b7ac30a4d603517d140a38e2ce3 (diff)
downloadskyhanni-38505f7d513368327028e3d80213432beebd174f.tar.gz
skyhanni-38505f7d513368327028e3d80213432beebd174f.tar.bz2
skyhanni-38505f7d513368327028e3d80213432beebd174f.zip
Fix: Visitor Shopping List AH items (#2297)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt7
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt4
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
index 3372c2abd..73384c9f0 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
@@ -23,6 +23,7 @@ import at.hannibal2.skyhanni.features.garden.GardenAPI
import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed.getSpeed
import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI.blockReason
import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi
+import at.hannibal2.skyhanni.features.inventory.bazaar.BazaarApi.isBazaarItem
import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.test.command.ErrorManager
@@ -201,7 +202,11 @@ object GardenVisitorFeatures {
if (Minecraft.getMinecraft().currentScreen is GuiEditSign) {
LorenzUtils.setTextIntoSign("$amount")
} else {
- BazaarApi.searchForBazaarItem(name, amount)
+ if (internalName.isBazaarItem()) {
+ BazaarApi.searchForBazaarItem(name, amount)
+ } else {
+ HypixelCommands.auctionSearch(name.removeColor())
+ }
}
},
) { GardenAPI.inGarden() && !NEUItems.neuHasFocus() },
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt
index 4df630dbe..032b81672 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/HypixelCommands.kt
@@ -12,6 +12,10 @@ object HypixelCommands {
send("bz $searchTerm")
}
+ fun auctionSearch(searchTerm: String) {
+ send("ahs $searchTerm")
+ }
+
fun playtime() {
send("playtime")
}