Moved throw up into the default:
This commit is contained in:
parent
f4706fff18
commit
853b5ca771
@ -61,13 +61,9 @@ public class FarmCommand extends Command {
|
|||||||
waypoint = waypoints[0];
|
waypoint = waypoints[0];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (waypoint == null) {
|
|
||||||
throw new CommandInvalidStateException("Multiple waypoints were found");
|
throw new CommandInvalidStateException("Multiple waypoints were found");
|
||||||
} else {
|
|
||||||
origin = waypoint.getLocation();
|
|
||||||
}
|
}
|
||||||
|
origin = waypoint.getLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
baritone.getFarmProcess().farm(range, origin);
|
baritone.getFarmProcess().farm(range, origin);
|
||||||
|
Loading…
Reference in New Issue
Block a user