mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 21:27:44 +01:00
parent
942c1ff3b3
commit
737ad16ff6
@ -627,7 +627,7 @@ public class IslandsManager {
|
|||||||
// location
|
// location
|
||||||
if (plugin.getIslands().inTeam(world, user.getUniqueId())) {
|
if (plugin.getIslands().inTeam(world, user.getUniqueId())) {
|
||||||
l = plugin.getIslands().getIslandLocation(world, user.getUniqueId());
|
l = plugin.getIslands().getIslandLocation(world, user.getUniqueId());
|
||||||
if (isSafeLocation(l)) {
|
if (l != null && isSafeLocation(l)) {
|
||||||
plugin.getPlayers().setHomeLocation(user, l, number);
|
plugin.getPlayers().setHomeLocation(user, l, number);
|
||||||
return l;
|
return l;
|
||||||
} else {
|
} else {
|
||||||
@ -640,7 +640,7 @@ public class IslandsManager {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
l = plugin.getIslands().getIslandLocation(world, user.getUniqueId());
|
l = plugin.getIslands().getIslandLocation(world, user.getUniqueId());
|
||||||
if (isSafeLocation(l)) {
|
if (l != null && isSafeLocation(l)) {
|
||||||
plugin.getPlayers().setHomeLocation(user, l, number);
|
plugin.getPlayers().setHomeLocation(user, l, number);
|
||||||
return l.clone().add(new Vector(0.5D,0,0.5D));
|
return l.clone().add(new Vector(0.5D,0,0.5D));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user