mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fix plot home being underground
This commit is contained in:
parent
315223f779
commit
94a113ea4d
1 changed files with 2 additions and 1 deletions
|
@ -900,7 +900,8 @@ import java.util.UUID;
|
||||||
return new Location(w, bot.getBlockX() + (x / 2), y, bot.getBlockZ() + (z / 2));
|
return new Location(w, bot.getBlockX() + (x / 2), y, bot.getBlockZ() + (z / 2));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return bot.add(home.x, home.y, home.z);
|
final int y = getHeighestBlock(w, home.x, home.z);
|
||||||
|
return bot.add(home.x, home.y + y, home.z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue