Skip to content

Commit

Permalink
stop end of ladder bobbing #10435 (#10459)
Browse files Browse the repository at this point in the history
Fix end of ladder bobbing
  • Loading branch information
Raycoms authored Nov 17, 2024
1 parent bb50bbf commit c624f30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ private boolean handlePathPointOnLadder(final PathPointExtended pEx)
}
else
{
if (PathfindingUtils.isLadder(level.getBlockState(entityPos.below()), getPathingOptions()))
if (PathfindingUtils.isLadder(level.getBlockState(entityPos.below()), getPathingOptions()) || ourEntity.getY() > pEx.y)
{
this.ourEntity.setYya(-0.5f);
}
Expand Down Expand Up @@ -986,7 +986,7 @@ protected void followThePath()
{
this.path.setNextNodeIndex(curNodeNext);
}
return;
return;
}
}

Expand Down

0 comments on commit c624f30

Please sign in to comment.