Translations:Lagback/32/zh: Difference between revisions
Content added Content deleted
(Created page with "//detects an error: player moved wrongly, or moved inside a collision box if (noCollisionInside && (movedWrongly || !next_noCollisionInside)) { //lags the player back to their previous position this.setPlayerLocation(this.lastPosX, this.lastPosY, this.lastPosZ, yaw, pitch); return; }") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
//检测到错误:玩家的移动与预期不符,或卡进了碰撞箱 |
|||
//detects an error: player moved wrongly, or moved inside a collision box |
|||
if (noCollisionInside && (movedWrongly || !next_noCollisionInside)) |
if (noCollisionInside && (movedWrongly || !next_noCollisionInside)) |
||
{ |
{ |
||
//让玩家回到之前的位置 |
|||
//lags the player back to their previous position |
|||
this.setPlayerLocation(this.lastPosX, this.lastPosY, this.lastPosZ, yaw, pitch); |
this.setPlayerLocation(this.lastPosX, this.lastPosY, this.lastPosZ, yaw, pitch); |
||
return; |
return; |
Latest revision as of 03:30, 7 September 2022
//检测到错误:玩家的移动与预期不符,或卡进了碰撞箱
if (noCollisionInside && (movedWrongly || !next_noCollisionInside)) { //让玩家回到之前的位置 this.setPlayerLocation(this.lastPosX, this.lastPosY, this.lastPosZ, yaw, pitch); return; }