Fix plot home being underground

This commit is contained in:
Jesse Boyd 2015-01-13 21:03:32 +11:00
parent 315223f779
commit 94a113ea4d

View File

@ -900,7 +900,8 @@ import java.util.UUID;
return new Location(w, bot.getBlockX() + (x / 2), y, bot.getBlockZ() + (z / 2));
}
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);
}
}