Skip to content

Commit

Permalink
Fixed void teleport not working in spawn island (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jul 21, 2022
1 parent a30e580 commit d78a72d
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -261,8 +261,7 @@ private void onPlayerMove(PlayerMoveEvent e) {
}

// Check for falling out of the void
if (from.getBlockY() != to.getBlockY() && to.getBlockY() <= plugin.getNMSWorld().getMinHeight(to.getWorld()) - 5 &&
plugin.getGrid().isIslandsWorld(to.getWorld())) {
if (from.getBlockY() != to.getBlockY() && to.getBlockY() <= plugin.getNMSWorld().getMinHeight(to.getWorld()) - 5) {
SuperiorPlayer superiorPlayer = plugin.getPlayers().getSuperiorPlayer(e.getPlayer());

Island island = plugin.getGrid().getIslandAt(e.getPlayer().getLocation());
Expand Down

0 comments on commit d78a72d

Please sign in to comment.