another change to make remembered position work correctly
This commit is contained in:
parent
ad56dd0741
commit
f3d4b0c6d1
1 changed files with 2 additions and 1 deletions
|
|
@ -854,10 +854,11 @@ namespace TShockAPI
|
|||
|
||||
if (Config.RememberLeavePos)
|
||||
{
|
||||
if (RememberedPos.GetLeavePos(player.Name, player.IP) != Vector2.Zero){
|
||||
var pos = RememberedPos.GetLeavePos(player.Name, player.IP);
|
||||
player.LastNetPosition = pos;
|
||||
player.Teleport((int) pos.X, (int) pos.Y + 3);
|
||||
}
|
||||
}}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue