Skip to content

Commit

Permalink
chores: Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Aug 8, 2023
1 parent 0b38e6e commit bdd9512
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private double applyMotionZ(double stepHeight, Location3d pos, double mz, AABBd
var zResult = moveAlongZAxisAndStopWhenCollision(resultAABB, mz, resultPos);
if (zResult.right()) {
//有碰撞,尝试跨步
if (tryStepping(aabb, stepHeight, mz > 0, true)) {
if (tryStepping(aabb, stepHeight, mz > 0, false)) {
//跨步成功
zResult = moveAlongZAxisAndStopWhenCollision(resultAABB, mz, resultPos);
}
Expand Down

0 comments on commit bdd9512

Please sign in to comment.