Skip to content

Commit

Permalink
Ellipsoid#contains: check world
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 17, 2021
1 parent 2c09b69 commit 2f083b1
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -235,6 +235,9 @@ public ListTag getShell() {
}

public boolean contains(Location test) {
if (test.getWorld() == null || !test.getWorld().getName().equals(center.getWorld().getName())) {
return false;
}
double xbase = test.getX() - center.getX();
double ybase = test.getY() - center.getY();
double zbase = test.getZ() - center.getZ();
Expand Down

0 comments on commit 2f083b1

Please sign in to comment.