Fixed double teleporting with SSC
users getting teleported twice with ssc and rememberpos if they didn't have loginbeforejoin enabled
This commit is contained in:
parent
a3a85957f6
commit
61f6bb1a01
1 changed files with 3 additions and 3 deletions
|
|
@ -1138,10 +1138,10 @@ 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) && Config.ServerSideCharacter && Config.DisableLoginBeforeJoin)
|
||||
{
|
||||
player.RPPending=3;
|
||||
player.SendMessage("You will be teleported to your last known location...", Color.Red);
|
||||
player.RPPending=3;
|
||||
player.SendMessage("You will be teleported to your last known location...", Color.Red);
|
||||
}
|
||||
|
||||
args.Handled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue