aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorDavid Cole <40234707+DavidArthurCole@users.noreply.github.com>2024-07-15 10:46:04 -0400
committerGitHub <noreply@github.com>2024-07-15 16:46:04 +0200
commit989b438124f647f615d1934e4b228dd0f58a8d28 (patch)
tree5f2745c811049c7455c4e575a5ab405c1a1fa905 /src/main/java/at
parentad7c6dfc824bb7d2b1405ec5f7c0a017612bbf2f (diff)
downloadskyhanni-989b438124f647f615d1934e4b228dd0f58a8d28.tar.gz
skyhanni-989b438124f647f615d1934e4b228dd0f58a8d28.tar.bz2
skyhanni-989b438124f647f615d1934e4b228dd0f58a8d28.zip
Fix: Craftable! text (again) (#2219)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/craft/CraftableItemList.kt2
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())
},
)
}