don't jump on air anymore
This commit is contained in:
parent
b96ee346f9
commit
0a8fb574b5
@ -121,6 +121,9 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
if (block instanceof BlockLadder || block instanceof BlockVine) {
|
if (block instanceof BlockLadder || block instanceof BlockVine) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (block instanceof BlockAir) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (isWater(block)) {
|
if (isWater(block)) {
|
||||||
return isWater(pos.up()); // You can only walk on water if there is water above it
|
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])) {
|
if (!MovementHelper.isAir(positionsToPlace[0]) && !MovementHelper.isWater(positionsToPlace[0])) {
|
||||||
return COST_INF;
|
return COST_INF;
|
||||||
}
|
}
|
||||||
|
if (true) {
|
||||||
|
return COST_INF;
|
||||||
|
}
|
||||||
for (BlockPos against1 : against) {
|
for (BlockPos against1 : against) {
|
||||||
if (BlockStateInterface.get(against1).isBlockNormalCube()) {
|
if (BlockStateInterface.get(against1).isBlockNormalCube()) {
|
||||||
return JUMP_ONE_BLOCK_COST + WALK_ONE_BLOCK_COST + PLACE_ONE_BLOCK_COST + getTotalHardnessOfBlocksToBreak(ts);
|
return JUMP_ONE_BLOCK_COST + WALK_ONE_BLOCK_COST + PLACE_ONE_BLOCK_COST + getTotalHardnessOfBlocksToBreak(ts);
|
||||||
|
Loading…
Reference in New Issue
Block a user