diff --git a/src/main/java/com/workert/robotics/helpers/CodeHelper.java b/src/main/java/com/workert/robotics/helpers/CodeHelper.java index 534d8695..85863f2f 100644 --- a/src/main/java/com/workert/robotics/helpers/CodeHelper.java +++ b/src/main/java/com/workert/robotics/helpers/CodeHelper.java @@ -212,7 +212,7 @@ public static void registerDefaultCommands() { } }); CodeHelper.registerCommand("waitForRedstoneLink", (robot, arguments) -> { - if (arguments.size() < 1) + if (arguments.size() < 2) throw new IllegalArgumentException("Expected two arguments for command \"waitForRedstoneLink\""); try { while (Create.REDSTONE_LINK_NETWORK_HANDLER.hasAnyLoadedPower(Couple.create(