Merge branch 'master' of github.com:cabaletta/baritone

This commit is contained in:
Leijurv 2018-08-23 13:12:17 -07:00
commit cf05e75e9a
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -140,7 +140,7 @@ public class ExampleBaritoneControl extends Behavior {
return; return;
} }
BlockPos playerFeet = playerFeet(); BlockPos playerFeet = playerFeet();
locs.sort(Comparator.comparingDouble(pos -> playerFeet.distanceSq(pos))); locs.sort(Comparator.comparingDouble(playerFeet::distanceSq));
// remove any that are within loaded chunks that aren't actually what we want // remove any that are within loaded chunks that aren't actually what we want
locs.removeAll(locs.stream() locs.removeAll(locs.stream()