Skip to content

Commit

Permalink
Update ElytraCommand.java
Browse files Browse the repository at this point in the history
  • Loading branch information
aquahonoredhi authored Apr 15, 2024
1 parent 6d06713 commit 2dd3486
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/baritone/command/defaults/ElytraCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ public void execute(String label, IArgConsumer args) throws CommandException {
if (iGoal == null) {
throw new CommandInvalidStateException("No goal has been set");
}
if (ctx.world().dimension() != Level.NETHER) {
throw new CommandInvalidStateException("Only works in the nether");
}

try {
elytra.pathTo(iGoal);
} catch (IllegalArgumentException ex) {
Expand Down

0 comments on commit 2dd3486

Please sign in to comment.