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