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