Fix bug with ai command not teleporting.

This commit is contained in:
tastybento 2018-05-26 15:35:29 -07:00
parent e9001d291d
commit ea4e45ede5

View File

@ -71,7 +71,7 @@ public class AiCommand extends CompositeCommand {
}
if (args.isEmpty()) {
// If in world, go
if (getPlugin().getIslands().hasIsland(getWorld(), user.getUniqueId())) {
if (getPlugin().getIslands().getIsland(getWorld(), user.getUniqueId()) != null) {
return getSubCommand("go").map(goCmd -> goCmd.execute(user, new ArrayList<>())).orElse(false);
}
// No islands currently