Skip to content

Commit

Permalink
Trial fix for ladder climbing
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 26, 2020
1 parent bd90351 commit 8868969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public PassableState isPassable(BlockSource source, PathPoint point) {
Material above = source.getMaterialAt(pos.getBlockX(), pos.getBlockY() + 1, pos.getBlockZ());
Material below = source.getMaterialAt(pos.getBlockX(), pos.getBlockY() - 1, pos.getBlockZ());
Material in = source.getMaterialAt(pos);
if (!below.isBlock() || !canStandOn(below)) {
if (!below.isBlock() || (!isClimbable(below) && !canStandOn(below))) {
return PassableState.UNPASSABLE;
}
if (isClimbable(in) && (isClimbable(above) || isClimbable(below))) {
Expand Down

0 comments on commit 8868969

Please sign in to comment.