diff --git a/src/main/java/org/bitbiome/commands/UseCommand.java b/src/main/java/org/bitbiome/commands/UseCommand.java index 4bfe3c5..52ac913 100644 --- a/src/main/java/org/bitbiome/commands/UseCommand.java +++ b/src/main/java/org/bitbiome/commands/UseCommand.java @@ -11,12 +11,7 @@ ArrayList enemies = new ArrayList(); @Override public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine engine) { - ArrayList allMobs = engine.getPlayer().getLocation().getMobList(); - for(int i = 0; i enemies = new ArrayList(); target.setFriendly(false); return "You used " + item.getName() + " on " + target.getName(); } + + private void getEnemies(ArrayList allMobs) { + for(int i = 0; i