aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-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