don't jump on air anymore
This commit is contained in:
		@@ -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
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user