Skip to content

Commit

Permalink
Fixed admin teleport not working if there are no safe blocks in the w…
Browse files Browse the repository at this point in the history
…orld
  • Loading branch information
OmerBenGera committed Mar 19, 2022
1 parent 352c9d9 commit 871af57
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -89,7 +89,11 @@ public void execute(SuperiorSkyblockPlugin plugin, CommandSender sender, Superio
}
}

superiorPlayer.teleport(island, environment, null);
superiorPlayer.teleport(island, environment, result -> {
if (!result) {
superiorPlayer.teleport(island.getIslandHome(environment));
}
});
}

@Override
Expand Down

0 comments on commit 871af57

Please sign in to comment.