Skip to content

Commit

Permalink
Fix waitForRedstoneLink only accepting one argument
Browse files Browse the repository at this point in the history
  • Loading branch information
OutCraft-Mods committed Feb 10, 2023
1 parent 02cd643 commit a816784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/workert/robotics/helpers/CodeHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a816784

Please sign in to comment.