lol you can't jump with a ceiling above you
This commit is contained in:
parent
915b03a44e
commit
b746e56631
@ -66,11 +66,10 @@ public class MovementParkour extends Movement {
|
|||||||
}
|
}
|
||||||
for (int i = 2; i <= 4; i++) {
|
for (int i = 2; i <= 4; i++) {
|
||||||
BlockPos dest = src.offset(dir, i);
|
BlockPos dest = src.offset(dir, i);
|
||||||
if (!MovementHelper.fullyPassable(dest)) {
|
for (int y = 0; y < 3; y++) {
|
||||||
return null;
|
if (!MovementHelper.fullyPassable(dest.up(y))) {
|
||||||
}
|
return null;
|
||||||
if (!MovementHelper.fullyPassable(dest.up())) {
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
if (MovementHelper.canWalkOn(dest.down())) {
|
if (MovementHelper.canWalkOn(dest.down())) {
|
||||||
return new MovementParkour(src, i, dir);
|
return new MovementParkour(src, i, dir);
|
||||||
@ -102,11 +101,10 @@ public class MovementParkour extends Movement {
|
|||||||
}
|
}
|
||||||
for (int i = 1; i <= 4; i++) {
|
for (int i = 1; i <= 4; i++) {
|
||||||
BlockPos d = src.offset(direction, i);
|
BlockPos d = src.offset(direction, i);
|
||||||
if (!MovementHelper.fullyPassable(d)) {
|
for (int y = 0; y < 3; y++) {
|
||||||
return COST_INF;
|
if (!MovementHelper.fullyPassable(d.up(y))) {
|
||||||
}
|
return COST_INF;
|
||||||
if (!MovementHelper.fullyPassable(d.up())) {
|
}
|
||||||
return COST_INF;
|
|
||||||
}
|
}
|
||||||
if (d.equals(dest)) {
|
if (d.equals(dest)) {
|
||||||
return costFromJumpDistance(i);
|
return costFromJumpDistance(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user