Translations:Sneaking/17/zh: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
} |
} |
||
//(从初始位置开始)检查 Z 轴方向上玩家下方 |
//(从初始位置开始)检查 Z 轴方向上玩家下方最远处的地面 |
||
while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty()) |
while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty()) |
||
{ |
{ |
Latest revision as of 07:36, 25 June 2022
dX_intended = dX;
} //(从初始位置开始)检查 Z 轴方向上玩家下方最远处的地面 while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty()) { if (dZ < increment && dZ >= -increment) dZ = 0.0D; else if (dZ > 0.0D) dZ -= increment; else dZ += increment;