mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-12-23 17:48:15 +01:00
Fix bug with ai command not teleporting.
This commit is contained in:
parent
e9001d291d
commit
ea4e45ede5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user