Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Jan 16, 2024
1 parent b75944f commit c2087cb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import javax.annotation.Nullable;
import java.util.EnumSet;
import java.util.Random;

public class CatWanderGoal extends Goal {

Expand Down Expand Up @@ -54,11 +53,7 @@ public boolean canUse() {
BlockPos catPos = this.cat.blockPosition();

// if the owner is more than 40-ish blocks away
if(ownerPos.distSqr(catPos) > this.maximumDistance) {
return false;
}

return true;
return (ownerPos.distSqr(catPos) < (this.maximumDistance * this.maximumDistance));
}

@Override
Expand Down

0 comments on commit c2087cb

Please sign in to comment.