Most likely fixed no.9 - Teleport bug.

This commit is contained in:
Wertík 2020-03-29 00:47:24 +01:00 committed by Brianna
parent 9d1dfeff04
commit f16bd2908c

View File

@ -208,8 +208,10 @@ public class Move implements Listener {
final Player player = e.getPlayer();
final WorldManager worldManager = skyblock.getWorldManager();
if (!worldManager.isIslandWorld(e.getTo().getWorld())) return;
if (skyblock.getIslandManager().getIslandAtLocation(e.getTo()) != null) return;
if (e.getTo() == null ||
!worldManager.isIslandWorld(e.getTo().getWorld()) ||
skyblock.getIslandManager().getIslandAtLocation(e.getTo()) != null)
return;
e.setCancelled(true);