* @param w
*
* @return
*/
private double getMinimumWith2Air(int finalX, int finalZ, int y, int yMax, World w) {
BlockSafety bs = new BlockSafety();
for (int i = y; i < yMax; i++) {
if (bs.playerCanSpawnHereSafely(w, finalX, i, finalZ)) {
return i;
}
}
return y;
}