tweaked some teleport code
This commit is contained in:
parent
fdf7c6ec07
commit
87e36cdb39
2 changed files with 1 additions and 1 deletions
|
|
@ -2252,7 +2252,7 @@ namespace TShockAPI
|
||||||
Color.Red);
|
Color.Red);
|
||||||
}
|
}
|
||||||
var lastTileX = args.Player.LastNetPosition.X;
|
var lastTileX = args.Player.LastNetPosition.X;
|
||||||
var lastTileY = args.Player.LastNetPosition.Y;
|
var lastTileY = args.Player.LastNetPosition.Y - 48;
|
||||||
if (!args.Player.Teleport(lastTileX, lastTileY))
|
if (!args.Player.Teleport(lastTileX, lastTileY))
|
||||||
{
|
{
|
||||||
args.Player.Spawn();
|
args.Player.Spawn();
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue