diff --git a/src/api/java/baritone/api/process/PathingCommand.java b/src/api/java/baritone/api/process/PathingCommand.java index f5b39501..082928b3 100644 --- a/src/api/java/baritone/api/process/PathingCommand.java +++ b/src/api/java/baritone/api/process/PathingCommand.java @@ -26,5 +26,8 @@ public class PathingCommand { public PathingCommand(Goal goal, PathingCommandType commandType) { this.goal = goal; this.commandType = commandType; + if (commandType == null) { + throw new IllegalArgumentException(); + } } }