diff --git a/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java b/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java index c9d60b3..9b357ac 100644 --- a/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java +++ b/src/main/java/world/bentobox/caveblock/listeners/CustomHeightLimitations.java @@ -107,7 +107,7 @@ private boolean shouldNotBeCancelled(double nextY, Player player, Location from, player.getGameMode().equals(GameMode.SPECTATOR) || player.hasPermission("caveblock.skywalker") || this.addon.getPlayers().isInTeleport(player.getUniqueId()) || - !Util.sameWorld(this.addon.getOverWorld(), player.getWorld()) || + !Util.sameWorld(this.addon.getOverWorld(), to.getWorld()) || CaveBlock.SKY_WALKER_FLAG.isSetForWorld(player.getWorld()); }