diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-17 22:07:06 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-17 22:07:06 +0200 |
commit | 1e725fe960da8d7c4705cebae6d8b4a4eb3658bb (patch) | |
tree | 273c3077bafd6bb109c1965881da795993176d8b /src/main/java/at/hannibal2/skyhanni/features | |
parent | 3e20798cfe3e04d2d85f1d8ef3f96b3d9631b04a (diff) | |
download | skyhanni-1e725fe960da8d7c4705cebae6d8b4a4eb3658bb.tar.gz skyhanni-1e725fe960da8d7c4705cebae6d8b4a4eb3658bb.tar.bz2 skyhanni-1e725fe960da8d7c4705cebae6d8b4a4eb3658bb.zip |
added optional renderable link texts
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 4 |
1 files changed, 2 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 442c4d47f..0b86ac8cc 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,9 +137,9 @@ class GardenVisitorFeatures { list.add(" §7- ") list.add(itemStack) - list.add(Renderable.link("$name §8x${amount.addSeparators()}") { + list.add(Renderable.optionalLink("$name §8x${amount.addSeparators()}", { LorenzUtils.setTextIntoSign("$amount") - }) + }) { Minecraft.getMinecraft().currentScreen is GuiEditSign }) if (config.visitorNeedsShowPrice) { val price = NEUItems.getPrice(internalName) * amount |