Send player back to spawn if remembered position puts them somewhere they can't really go.

This commit is contained in:
k0rd 2012-02-04 18:11:17 -05:00
parent e7889a7951
commit 364d4cb3f6

View file

@ -854,9 +854,9 @@ namespace TShockAPI
if (Config.RememberLeavePos)
{
if (RememberedPos.GetLeavePos(player.Name, player.IP) != Vector2.Zero){
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);
}}
@ -1433,4 +1433,4 @@ namespace TShockAPI
Utils.HashAlgo = file.HashAlgorithm;
}
}
}
}