From 17f9eb45ca786f91eb4775205199e7ebb53ed38b Mon Sep 17 00:00:00 2001 From: TheMode Date: Fri, 13 Aug 2021 19:53:37 +0200 Subject: [PATCH] Make `#getNearbyBlocks` static --- .../net/minestom/server/entity/ai/goal/RandomStrollGoal.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/ai/goal/RandomStrollGoal.java b/src/main/java/net/minestom/server/entity/ai/goal/RandomStrollGoal.java index 7c198fda9..b934ec882 100644 --- a/src/main/java/net/minestom/server/entity/ai/goal/RandomStrollGoal.java +++ b/src/main/java/net/minestom/server/entity/ai/goal/RandomStrollGoal.java @@ -1,8 +1,8 @@ package net.minestom.server.entity.ai.goal; +import net.minestom.server.coordinate.Vec; import net.minestom.server.entity.EntityCreature; import net.minestom.server.entity.ai.GoalSelector; -import net.minestom.server.coordinate.Vec; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; @@ -59,8 +59,7 @@ public class RandomStrollGoal extends GoalSelector { return radius; } - @NotNull - private List getNearbyBlocks(int radius) { + private static @NotNull List getNearbyBlocks(int radius) { List blocks = new ArrayList<>(); for (int x = -radius; x <= radius; x++) { for (int y = -radius; y <= radius; y++) {