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++) {