diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-18 17:10:31 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-18 17:10:31 +0200 |
| commit | d60850afad8fca20780876a510e7f3960e68aa59 (patch) | |
| tree | d3021d0eb688ce4d1f161ccd264edec6ef64cb1f /src | |
| parent | 0efb162d37fb5ecdc4636c9dd37b5436e78800d3 (diff) | |
| download | SkyHanni-d60850afad8fca20780876a510e7f3960e68aa59.tar.gz SkyHanni-d60850afad8fca20780876a510e7f3960e68aa59.tar.bz2 SkyHanni-d60850afad8fca20780876a510e7f3960e68aa59.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')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 10 |
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 |
