fix for double teleporting rememberleavepos under certain config combinations

This commit is contained in:
k0rd 2013-10-21 22:00:07 -04:00
parent 2c92f0e543
commit 8b29047a59

View file

@ -1150,7 +1150,7 @@ namespace TShockAPI
player.LastNetPosition = new Vector2(Main.spawnTileX*16f, Main.spawnTileY*16f);
if (Config.RememberLeavePos && (RememberedPos.GetLeavePos(player.Name, player.IP) != Vector2.Zero))
if (Config.RememberLeavePos && (RememberedPos.GetLeavePos(player.Name, player.IP) != Vector2.Zero) && !player.LoginHarassed)
{
player.RPPending=3;
player.SendMessage("You will be teleported to your last known location...", Color.Red);