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 |
||
Line 2: | Line 2: | ||
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; |
Revision as of 16:51, 6 September 2022
//detects an error: player moved wrongly, or moved inside a collision box
if (noCollisionInside && (movedWrongly || !next_noCollisionInside)) { //让玩家回到之前的位置 this.setPlayerLocation(this.lastPosX, this.lastPosY, this.lastPosZ, yaw, pitch); return; }