don't jump on air anymore

This commit is contained in:
Leijurv 2018-08-05 22:09:29 -04:00
parent b96ee346f9
commit 0a8fb574b5
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,9 @@ public interface MovementHelper extends ActionCosts, Helper {
if (block instanceof BlockLadder || block instanceof BlockVine) {
return true;
}
if (block instanceof BlockAir) {
return false;
}
if (isWater(block)) {
return isWater(pos.up()); // You can only walk on water if there is water above it
}

View File

@ -49,6 +49,9 @@ public class MovementAscend extends Movement {
if (!MovementHelper.isAir(positionsToPlace[0]) && !MovementHelper.isWater(positionsToPlace[0])) {
return COST_INF;
}
if (true) {
return COST_INF;
}
for (BlockPos against1 : against) {
if (BlockStateInterface.get(against1).isBlockNormalCube()) {
return JUMP_ONE_BLOCK_COST + WALK_ONE_BLOCK_COST + PLACE_ONE_BLOCK_COST + getTotalHardnessOfBlocksToBreak(ts);