possibly fix parkour cost calculation issue

This commit is contained in:
Leijurv
2018-09-11 13:15:13 -07:00
parent ab1037bcfd
commit bafc938424

View File

@@ -109,7 +109,7 @@ 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);
for (int y = 0; y < 4; y++) { for (int y = 0; y < (i == 1 ? 3 : 4); y++) {
if (!MovementHelper.fullyPassable(d.up(y))) { if (!MovementHelper.fullyPassable(d.up(y))) {
return COST_INF; return COST_INF;
} }