From a926a1ffe1edee456ede638c28e439fb3ae8958e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 1 Jun 2024 09:26:57 +0200 Subject: better error format when no arguments in /shcropgoal --- src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands') 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( -- cgit