fix for double teleporting rememberleavepos under certain config combinations
This commit is contained in:
parent
2c92f0e543
commit
8b29047a59
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue