mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-24 03:05:56 +01:00
Fix error on move event when not in an island world.
This commit is contained in:
parent
c21ad9c2e1
commit
99de1ccf5b
@ -202,8 +202,7 @@ public class Move implements Listener {
|
||||
}
|
||||
|
||||
// Load the island they are now on if one exists
|
||||
if (player.hasPermission("fabledskyblock.bypass")
|
||||
|| islandManager.getIslandAtLocation(player.getLocation()).isAlwaysLoaded()) {
|
||||
if (player.hasPermission("fabledskyblock.bypass")) {
|
||||
Island loadedIsland = islandManager.loadIslandAtLocation(player.getLocation());
|
||||
if (loadedIsland != null) {
|
||||
playerData.setIsland(loadedIsland.getOwnerUUID());
|
||||
@ -211,6 +210,7 @@ public class Move implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LocationUtil.teleportPlayerToSpawn(player);
|
||||
|
||||
messageManager.sendMessage(player,
|
||||
|
Loading…
Reference in New Issue
Block a user