From 1889e374938dffa7b85c9e0442f67e91938ff931 Mon Sep 17 00:00:00 2001 From: Brady Date: Thu, 23 Aug 2018 15:05:37 -0500 Subject: [PATCH] Replace lambda with method reference --- src/main/java/baritone/utils/ExampleBaritoneControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index 78f418ea..d54a035d 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -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()