mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 18:55:30 +01:00
Most likely fixed no.9 - Teleport bug.
This commit is contained in:
parent
9d1dfeff04
commit
f16bd2908c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user