diff --git a/src/main/java/org/bitbiome/commands/LookaroundCommand.java b/src/main/java/org/bitbiome/commands/LookaroundCommand.java index ce18dda..49133ab 100644 --- a/src/main/java/org/bitbiome/commands/LookaroundCommand.java +++ b/src/main/java/org/bitbiome/commands/LookaroundCommand.java @@ -33,27 +33,8 @@ public class LookaroundCommand implements CommandAPI{ foundItems.removeAll(foundItems); ArrayList foundMobs = location.getMobList(); foundMobs.removeAll(foundMobs); + foundItems = getRandomItem(randomNumberItems, random, items, foundItems); - for (int i=0; i getRandomItem(int randomNumberItems, Random random, JSONArray items, ArrayList foundItems ) { + for (int i=0; i