Skip to content

Commit

Permalink
fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 24, 2019
1 parent efe6ee6 commit 15a815e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,18 +544,18 @@ public void updateAvoids() {
*/
public static boolean isUntargetable(Entity e) {
if (e == null) {
return false;
return true;
}
if (e.isDead()) {
return false;
return true;
}
if (e instanceof Player) {
GameMode mode = ((Player) e).getGameMode();
if (mode == GameMode.CREATIVE || mode == GameMode.SPECTATOR) {
return false;
return true;
}
}
return true;
return false;
}

/**
Expand Down

0 comments on commit 15a815e

Please sign in to comment.