Merge pull request #335 from k0rd/general-devel
more accurately updated position during teleportation, warps, and noclip detection
This commit is contained in:
commit
174acade76
1 changed files with 2 additions and 2 deletions
|
|
@ -268,8 +268,8 @@ namespace TShockAPI
|
||||||
|
|
||||||
SendWorldInfo(Main.spawnTileX, Main.spawnTileY, false);
|
SendWorldInfo(Main.spawnTileX, Main.spawnTileY, false);
|
||||||
|
|
||||||
TPlayer.position.X = tilex * 16;
|
TPlayer.position.X = (float)(tilex * 16 + 8 - TPlayer.width /2);
|
||||||
TPlayer.position.Y = tiley * 16;
|
TPlayer.position.Y = (float)(tiley * 16 - TPlayer.height);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue