aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/commands
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-01 09:26:57 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-01 09:26:57 +0200
commita926a1ffe1edee456ede638c28e439fb3ae8958e (patch)
tree588009fb931b152a59141198895bbb022aa8989c /src/main/java/at/hannibal2/skyhanni/config/commands
parent1e9d11e39c7d7e68985d78e5b1f6f063fd8b4b52 (diff)
downloadskyhanni-a926a1ffe1edee456ede638c28e439fb3ae8958e.tar.gz
skyhanni-a926a1ffe1edee456ede638c28e439fb3ae8958e.tar.bz2
skyhanni-a926a1ffe1edee456ede638c28e439fb3ae8958e.zip
better error format when no arguments in /shcropgoal
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
index 61b24c76c..611b57621 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -296,9 +296,7 @@ object Commands {
registerCommand0(
"shcropgoal",
"Define a custom milestone goal for a crop.",
- {
- FarmingMilestoneCommand.setGoal(it.getOrNull(0), it.getOrNull(1))
- },
+ { FarmingMilestoneCommand.setGoal(it) },
FarmingMilestoneCommand::onComplete
)
registerCommand0(