Moved throw up into the default:
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user