1
0
mirror of https://github.com/cabaletta/baritone synced 2025-02-17 04:17:28 +00:00

Moved throw up into the default:

This commit is contained in:
millennIumAMbiguity 2020-11-02 01:44:12 +01:00
parent f4706fff18
commit 853b5ca771

View File

@ -61,13 +61,9 @@ public class FarmCommand extends Command {
waypoint = waypoints[0];
break;
default:
break;
}
if (waypoint == null) {
throw new CommandInvalidStateException("Multiple waypoints were found");
} else {
origin = waypoint.getLocation();
throw new CommandInvalidStateException("Multiple waypoints were found");
}
origin = waypoint.getLocation();
}
baritone.getFarmProcess().farm(range, origin);