diff --git a/src/main/java/org/bitbiome/commands/LookaroundCommand.java b/src/main/java/org/bitbiome/commands/LookaroundCommand.java index 2f3b77f..e6b632d 100644 --- a/src/main/java/org/bitbiome/commands/LookaroundCommand.java +++ b/src/main/java/org/bitbiome/commands/LookaroundCommand.java @@ -32,8 +32,39 @@ public class LookaroundCommand implements CommandAPI{ JSONArray items = locationObject.getJSONArray("items"); JSONArray mobs = locationObject.getJSONArray("mobs"); + Random random = new Random(); + int randomNumberItems = random.nextInt(items.length()+1); + int randomNumberMobs = random.nextInt(mobs.length()+1); ArrayList foundItems = location.getItemList(); + foundItems.removeAll(foundItems); ArrayList foundMobs = location.getMobList(); + foundMobs.removeAll(foundMobs); + + for (int i=0; i