diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt | 2 |
2 files changed, 3 insertions, 3 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 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()) }, ) } |