aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-18 17:10:31 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-18 17:10:31 +0200
commit19162e0619051474d60fa8aac1548087277d5b8d (patch)
treed3021d0eb688ce4d1f161ccd264edec6ef64cb1f /src/main/java/at
parent24c2ce6ca9962123bdc1a11ff49e3c5b2d18e148 (diff)
downloadskyhanni-19162e0619051474d60fa8aac1548087277d5b8d.tar.gz
skyhanni-19162e0619051474d60fa8aac1548087277d5b8d.tar.bz2
skyhanni-19162e0619051474d60fa8aac1548087277d5b8d.zip
Clicking on the visitor item list opens the /bz <item> command (only with booster cookie and only on the garden)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt10
1 files changed, 8 insertions, 2 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 97616fe86..a5506bf5e 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
@@ -137,8 +137,14 @@ class GardenVisitorFeatures {
list.add(itemStack)
list.add(Renderable.optionalLink("$name ยง8x${amount.addSeparators()}", {
- LorenzUtils.setTextIntoSign("$amount")
- }) { Minecraft.getMinecraft().currentScreen is GuiEditSign })
+ if (Minecraft.getMinecraft().currentScreen is GuiEditSign) {
+ LorenzUtils.setTextIntoSign("$amount")
+ } else {
+ val thePlayer = Minecraft.getMinecraft().thePlayer
+ val baseName = name.removeColor()
+ thePlayer.sendChatMessage("/bz $baseName");
+ }
+ }) { GardenAPI.inGarden() })
if (config.visitorNeedsShowPrice) {
val price = NEUItems.getPrice(internalName) * amount