mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-21 06:51:29 +01:00
Fix for distance between different worlds
This commit is contained in:
parent
4eeef50853
commit
b1528c30a2
@ -235,7 +235,8 @@ public class Move implements Listener {
|
||||
final WorldManager worldManager = skyblock.getWorldManager();
|
||||
if(e.getTo() != null && e.getTo().getWorld() != null){
|
||||
e.getTo().getWorld().loadChunk(e.getTo().getChunk());
|
||||
if(worldManager.isIslandWorld(e.getTo().getWorld()) && e.getTo().distance(e.getFrom()) > 1.0d){ // We should not care of self block tp
|
||||
if(worldManager.isIslandWorld(e.getTo().getWorld())
|
||||
&& (!e.getTo().getWorld().equals(e.getFrom().getWorld()) || e.getTo().distance(e.getFrom()) > 1.0d)){ // We should not care of self block tp
|
||||
if(skyblock.getIslandManager().getIslandAtLocation(e.getTo()) == null){
|
||||
e.setCancelled(true);
|
||||
skyblock.getMessageManager().sendMessage(player,
|
||||
|
Loading…
Reference in New Issue
Block a user