Replace lambda with method reference

This commit is contained in:
Brady 2018-08-23 15:05:37 -05:00
parent e9308d7e70
commit 1889e37493
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ public class ExampleBaritoneControl extends Behavior {
return;
}
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
locs.removeAll(locs.stream()