mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
*
This commit is contained in:
parent
0d608245f5
commit
8b6cc7a193
@ -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 New Issue
Block a user