mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
*
This commit is contained in:
parent
0d608245f5
commit
8b6cc7a193
2 changed files with 1 additions and 3 deletions
|
@ -231,7 +231,7 @@ public class Auto extends SubCommand {
|
|||
});
|
||||
}
|
||||
|
||||
private static void autoClaimFromDatabase(final PlotPlayer player, final PlotArea area, PlotId start, final RunnableVal<Plot> whenDone) {
|
||||
public static void autoClaimFromDatabase(final PlotPlayer player, final PlotArea area, PlotId start, final RunnableVal<Plot> whenDone) {
|
||||
final Plot plot = area.getNextFreePlot(player, start);
|
||||
if (plot == null) {
|
||||
whenDone.run(null);
|
||||
|
|
|
@ -1147,10 +1147,8 @@ public class Plot {
|
|||
public Location getHome() {
|
||||
BlockLoc home = this.getPosition();
|
||||
if (home == null || home.x == 0 && home.z == 0) {
|
||||
System.out.println("Default");
|
||||
return this.getDefaultHome(true);
|
||||
} else {
|
||||
System.out.println("Custom");
|
||||
Location bot = this.getBottomAbs();
|
||||
Location loc = new Location(bot.getWorld(), bot.getX() + home.x, bot.getY() + home.y, bot.getZ() + home.z, home.yaw, home.pitch);
|
||||
if (!isLoaded()) return loc;
|
||||
|
|
Loading…
Reference in a new issue