Redigit why is teleporting so hard.
This commit is contained in:
parent
4d2639bb2a
commit
6aba5ca624
1 changed files with 2 additions and 5 deletions
|
|
@ -778,17 +778,14 @@ namespace TShockAPI
|
|||
}
|
||||
int lastTileX = (int) (args.Player.LastNetPosition.X/16f);
|
||||
int lastTileY = (int) (args.Player.LastNetPosition.Y/16f);
|
||||
if (!args.Player.Teleport(lastTileX, lastTileY + 3))
|
||||
if (!args.Player.Teleport(lastTileX, lastTileY))
|
||||
{
|
||||
args.Player.Spawn();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (args.Player.Dead)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue