From 989b438124f647f615d1934e4b228dd0f58a8d28 Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Mon, 15 Jul 2024 10:46:04 -0400 Subject: Fix: Craftable! text (again) (#2219) --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 4 ++-- .../hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java') 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 77ba00da7..151ec4caa 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 @@ -258,7 +258,7 @@ object GardenVisitorFeatures { break } } - if (hasIngredients) { + if (hasIngredients && (amount - amountInSacks) > 0) { val leftToCraft = amount - amountInSacks list.add(" §7(") list.add( @@ -268,7 +268,7 @@ object GardenVisitorFeatures { if (Minecraft.getMinecraft().currentScreen is GuiEditSign) { LorenzUtils.setTextIntoSign("$leftToCraft") } else { - HypixelCommands.viewRecipe(internalName.toString()) + HypixelCommands.viewRecipe(internalName.asString()) } }, ) { GardenAPI.inGarden() && !NEUItems.neuHasFocus() }, diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt index 03e6b6656..6b841f5a4 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt @@ -114,7 +114,7 @@ object CraftableItemList { "§8x$amountFormat ${internalName.itemName}", tips = tooltip, onClick = { - HypixelCommands.viewRecipe(internalName.itemName) + HypixelCommands.viewRecipe(internalName.asString()) }, ) } -- cgit