This commit is contained in:
Jesse Boyd 2017-09-29 23:23:40 +10:00
parent 0d608245f5
commit 8b6cc7a193
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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;