From c67c9582c4b940f7fcaefa35746d0409afb8b836 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 14 Aug 2018 13:23:57 -0700 Subject: [PATCH] Thanks IntelliJ for that amazingly helpful performance optimization suggestion --- src/main/java/baritone/bot/behavior/impl/PathingBehavior.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java index 47f33f5f..53b0e036 100644 --- a/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/bot/behavior/impl/PathingBehavior.java @@ -31,7 +31,7 @@ import baritone.bot.utils.PathRenderer; import net.minecraft.util.math.BlockPos; import java.awt.*; -import java.util.Arrays; +import java.util.Collections; import java.util.Optional; public class PathingBehavior extends Behavior { @@ -266,7 +266,7 @@ public class PathingBehavior extends Behavior { currentlyRunning.pathToMostRecentNodeConsidered().ifPresent(mr -> { PathRenderer.drawPath(mr, 0, player(), partialTicks, Color.CYAN, Baritone.settings().fadePath, 10, 20); - PathRenderer.drawManySelectionBoxes(player(), Arrays.asList(mr.getDest()), partialTicks, Color.CYAN); + PathRenderer.drawManySelectionBoxes(player(), Collections.singletonList(mr.getDest()), partialTicks, Color.CYAN); }); }); });